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]

Reply via email to