[Laszlo-user] dataset updated, replicated <textlistitem>s are not
Daniel Salama
lists at infoway.net
Mon Jun 5 23:27:51 EDT 2006
You may want to check:
http://www.laszlosystems.com/lps-3.3/docs/guide/
databinding.html#d0e21901
Which is basically Section 9.2 of Chapter 34 in the Software
Engineer's Guide to Developing OpenLaszlo Applications.
It's not 100% what you are doing what you should be able to infer
from the example how to solve your problem.
- Daniel
On Jun 5, 2006, at 8:14 PM, Mo wrote:
> hello there,
>
> i'm doing a very simple group management thing with openlaszlo and i'm
> stuck on a little problem with databinding:
>
> let's say i have a dataset, like
>
> <dataset name="users">
> <user id="1" name="me" ismember="true" />
> <user id="2" name="you" ismember="true" />
> <user id="3" name="him" ismember="false" />
> <user id="4" name="her" ismember="false" />
> </dataset>
>
> and two <list>s with <textlistitem>s replicated from the <dataset>. as
> you would have guessed, one's <datapath> is set to
> "users:/user[@ismember='true']" and the other one's <datapath> is
> set to
> "users:/user[@ismember='false']" - when i click on one of the
> <textlistitems> a method is called that changes the attribute in the
> <dataset> in the respective user row. shouldn't the views bound to
> that
> <dataset>, in this case the <list>s with their <textlistitem>s, update
> then too?
>
> when i change this simple example so that each <list> uses a separate
> <dataset>, with the method deleting the node from one <dataset> and
> adding it to the other one, then the first <list> gets updated (the
> item
> disappears) but not the second one (the item does not reappear in the
> second <list>).
>
> any idea what i'm doing wrong? tried setting the datapath's rerunxpath
> attribute to true, also tried resetting the complete datapath, but
> to no
> avail.
>
> greetings & thanks
> - mo
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060605/b1061929/attachment.html
More information about the Laszlo-user
mailing list