Hello,

I run into a problem. I'm using LC Data Services with two destinations:
"Customers" and "Customer". First one is used to fill datagrid with
basic customer information like "name, city", the second one to
get/update/create specific customer. I decided to split this into two
destinations because there are 30,000 or more customers so destination
"Customers" uses custom paging (with startIndex, number of rows) and
there are many more properties of each customer than "name, city".

So, when user double clicks in the data grid form displays and
destination "Customer" getItem is called to fetch full information
about this specific customer.

So far so good. It works flawlessly. BUT! because i'm using paging to
fill datagrid i disabled caching and autoSync:
<cache-items>false</cache-items>
<auto-sync-enabled>false</auto-sync-enabled>
in "Customers" destination configuration.

How can i make destination that fill datagrid aware of changes made
through other one? I thought about using subtopics, but as far as I
know theses are destination specific so no joy.

Maybe I should do all of this using only one destination? but what
about getItem in assembler? I cannot use it once to get full customer
data and the other time to upadte specific row in datagrid (getItem
would be used to refresh particular row in case of update, wouldn't it?)

Im using plain java for assemblers, services (no hibernate, etc.). 

I'm looking forward for any suggestions, it is quite possible I'm
making a big conceptional mistake because i just started using DS (and
i find it amazing).

Thanks,
Gabriel Borkowski

Reply via email to