[Laszlo-user] Laszlo Newbie Question: updateDate() to dataset (.xml)

Rob Justice goldflowersecret at yahoo.com
Sun Dec 16 18:06:24 PST 2007


Fellow Laszloans,

I'm new to the platform and having difficulty getting updateData() to update the xml file (dataset) that the datapath references.  Using the debugger, I see that the in-memory datapath is updated, but not the file itself.  Here's the code snippet:
_________________________________________________________________
<view id="v2" layout="x" />
   <dataset name="resumedata" src="resumedata.xml"/>
   <hbox spacing="20" />
   <class name="resume" layout="x" datapath="resumedata:/resume/employerinfo"
      <statictext name="t1" label="Employer Name"/>
      <edittext name="it1" width="150" datapath="@name"/>
      <!-- several other text controls -->
      <button name="b">Update
         <handler name="onclick">
            updateData();
         </handler>
      </button>
   </class>
<resume name="r" visible="false" />

<!-- r is visible later when another control is selected -->
__________________________________________________________________

Thanks in advance.

Rob

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20071216/b8de7ab6/attachment.html


More information about the Laszlo-user mailing list