[Laszlo-dev] how can i change the dataset element value?
Jim Grandy
jgrandy at openlaszlo.org
Mon Jun 5 00:49:19 EDT 2006
Hi Edmond,
This question is more appropriate for the laszlo-user mailing list.
Please post it over there.
Thanks!
jim
On Jun 4, 2006, at 6:06 PM, Edmond Lee wrote:
> <dataset name="newrecord_signedin">
>
> <item>
>
> <name></name>
>
> <title></title>
>
> <light></light>
>
> <email></email>
>
> <email></email>
>
> <telephone></telephone>
>
> <address></address>
>
> <notes/>
>
> </item>
>
> </dataset>
>
>
>
> <method name="removeSignedInUser" args="value">
>
>
>
> var dp = new LzDatapointer( this ,{ xpath :
> "newrecord_signedin:/item[1]" } );
>
> do {
>
> var logout_user = dp.xpathQuery('name/text()');
>
> if( logout_user == value[0]){
>
> Debug.write(logout_user);//this is
> correct result will be remove, and debug out correctly;
>
> dp.selectChild();
>
> dp.p.removeChild(logout_user);
>
> }
>
> } while (dp.selectNext());
>
>
>
> //parent.middle.datapath.updateData();
>
>
>
> parent.middle.datapath.deleteNode();
>
> signedinDP.addNodeFromPointer( parent.middle.datapath );
>
> //this.close();
>
> </method>
>
>
>
> But why I can not removed the user element from dataset? And I just
> want delte an element from the dataset by item:name,pls help me.
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060605/f82d2f7c/attachment.html
More information about the Laszlo-dev
mailing list