Hi Rajesh,
Did your application use one of our view widgets (Static Grid, Dyna Grid, Chart)?
In this case there is no way to prevent them from receiving and managing ADD events. Otherwise, if you rely on
onItemUpdate of SubscriptionListener, you have complete freedom in sending to the UI only certain updates.
About the two options I proposed:
1) We have several demos showing the simple COMMAND mode (only one level), starting from the
basic-portfolio-demo. But in your case, if I have understood correctly, the tricky part is to combine information from the DATA Adapter with the INIT Adapter.
2) In this case you should leverage the
getItems method of Metadata Adapter interface. The client will subscribe a single Item in MERGE mode, but in getItems you will return the actual Item list.
This approach works fine when the composition of the list is static or changes very rarely; since for each change, you must warn the client that should repeat the subscription.
Regards,
Giuseppe