that would be very usefull ! So that would mean every view has an attribute *replicationdone* and an event *onreplicationdone* whcih is thrown one's the replication-manager of that view has completed.
Maybe more simple and even more usefull would be an event *onreplicationdone* in the dataset. Meaning if your dataset is used in several views => you want to know when ALL views have replication completed sothat you can proceed and set your default values/custom values/selection. That way you would have two attributes/events in both the dataset and the view: ondata => which means data is received and replication is starting onreplicationdone => which means replication has completed another Issue connected to this: http://jira.openlaszlo.org/jira/browse/LPP-3833 sebastian 2007/9/25, Henry Minsky <[EMAIL PROTECTED]>: > > Hmm, we really ought to have some solution for this after all this time. > > The question is how do you get notified when replication is finished. > Seems > simple enough to send an onreplicationdone event to the parent of the > datapath? > > I think one obstacle to that was that the replicationmanager has silently > replaced the original view, and is the parent of the datapath now, so event > handlers which you wrote on the original view are no longer anywhere to be > found. > > Maybe we should make the replicationmanager grab the 'onreplicaitondone' > event handler from > the view it is replacing, and register for them, so that you could write > > <view name="baz" datapath="foo:/foo/bar"> > <handler name="onreplicationdone"> > Debug.write('onreplicationdone received', this); > </handler> > <text datapath="@color"/> > </view> > > And the "onreplicationdone" handler would execute just once when > the replicator was done. > > > > > > > > ---------- Forwarded message ---------- > From: Sebastian Wagner <[EMAIL PROTECTED]> > Date: Sep 25, 2007 10:10 AM > Subject: [Laszlo-dev] Is there any solution for LPP-1318? > To: OpenLaszlo development list < [email protected]> > > hi, > > an old Issue: > http://jira.openlaszlo.org/jira/browse/LPP-1318 > > I really would like to use datapath's more often but this Issue blocks it > all. > So i have to switch to dynamically instantiating... at the moemnt my next > bigger projects starts ... i'll start with datapath's.. now I'm in the same > situation like one year ago => rewrite every combobox/grid/table/list to > dynamically add all their items. Otherwise i have no chance to know when the > last item has been added. Throwing an ondata-event for every item is no > option. > > any idea's? > > sebastian > -- > Sebastian Wagner > http://www.webbase-design.de > http://www.laszlo-forum.de > [EMAIL PROTECTED] > > -- > Henry Minsky > Software Architect > [EMAIL PROTECTED] > > -- Sebastian Wagner http://www.webbase-design.de http://www.laszlo-forum.de [EMAIL PROTECTED]
