[Laszlo-user] dataset updated, replicated <textlistitem>s are not

Mo mail at mo.virtual-bunker.de
Mon Jun 5 20:14:16 EDT 2006


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


More information about the Laszlo-user mailing list