dataLoadCoordinator pass parameter to loader on onContainerItemChanged from collection value Object

Hi Team ,

Can you guide me how to pass parameter using dataLoadCoordinator to another dataLoader on onContainerItemChanged

Consider CProject collection which will be loaded on beforeShowEvent

And Another StoreStock collection which has reference to Project store value object

I want to pass project store to collection StoreStock to be refresh

 <loader id="cProjectsDl">
         <![CDATA[select e from CProject e order by e.code asc , asc]]>
<loader id="storesStocksDl">
          <![CDATA[select e from vtower_MainStoreStock e  where =:store order by e.costItem.code asc , e.costItem.description asc]]>

store parameter is value object inside Project class


DataLoadCoordinator does not support traversing of object graphs, so you can use only the Project entity itself as a parameter value.
In case you need a property, add a ItemChangeEvent listener to the projects container and reload storesStocksDl after setting its parameter programmatically.


1 Like

Thanks @knstvk ,

This is the same approach we are following , I think it may be good feature to be implemented