PDA

View Full Version : view update


sgv
05-22-2008, 01:03 PM
I have two views viewA bound to dataset 'a' and viewB bound to dataset 'b'.
When an attribute in dataset 'a' changes I need to change the visibility of a view that is bound to 'b'. So, the change event is captured in applyData for 'a'. When I load viewB , what event can I consistently use to set the visibility? ondata won't get called because there has been no change to the dataset 'b'.
ViewB represents a list and therefore is a replicated view. Its datapath
is not being pooled and replication has not been set to lazy.
My second question is one of understanding the documentation regarding pooling datapaths. Would this be an example of '... the view having additional state which can change through user interaction' ? .
I have tried onload and init to no avail for viewB.
many thanks
sgv :)

rcyeager
05-22-2008, 01:10 PM
When dataset A changes, why not remove the appropriate elements from dataset B that are to be hidden?

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

sgv
05-22-2008, 01:25 PM
They are only UI components. In this example the necessary change to viewB is removal of the 'delete' link based on the change in dataset a. So I want to change the visibility of the links. The view that holds them can simply be turned off.

sgv
05-22-2008, 02:33 PM
So I am looking for a way to force the ondata or other method to be called on a view when after its initial creation, whenever it is visually presented.