PDA

View Full Version : retrieveData() not working


twashing
07-10-2003, 01:50 PM
Hello all, I am trying to modify a dataset based on what has been selected in a UI component.

Has anyone had datapath.retrieveData() work for 1. embedded data 2. included data 3. http data?

I have a <text/> bound to an attribute in a dataset. On closer inspection, I don't see how this can work since the browser cannot write any data to disk.

If someone is persisting data from a UI component... how?

antun
07-10-2003, 07:35 PM
You can certainly modify the data in a dataset - that's just a runtime representation of it. Have a look at the api for datapointer:

http://www.laszlosystems.com/developers/learn/documentation/lzxref/datapointer.php

... that's what you'll be using if you want to make a specific change at a certain point in data. For example if you wanted to set an attribute of a specific node to a desired value when the user clicked something.

On the other hand you could also use data binding to (for example) bind the value of an attribute to a property of a view.

You can retrieve the XML (for debugging) in the dataset by getting a pointer to it and calling its serialize() method - see this tip for more on that:

http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=97

What you'll most likely be doing is POSTing the data back to a service on the server for parseing.

-Antun

twashing
07-11-2003, 06:50 AM
A-OK now.

I had been to the DataPointer docs before, and saw that your bound UI components had to implement the "retrieveData()" method. It just wasn't updating the memory copy of the XML last night.

I guess things just work in the mornings. Thanks.