You created a dataelement, you can attach that to a datapointer (by doing an xpathquery against the pointer) and a datapointer can be created from a dataset and a dataset can be created by <dataset name="me">thedata/></dataset>
So
<dataset name="me">thedata/></dataset>
<datapointer name="dp" xpath="me:/"/>
<script>
element = this.dp.xpathQuery("thedata")
element.appendChild (LzDataElement.valueToElement(retval))



On 10/5/06, R. van Twisk < [EMAIL PROTECTED]> wrote:
hey all,

I get data back from a xml-rpc call and my ondata look LIKE this:

        <handler name="ondata" args="retval">
            var el = LzDataElement.valueToElement(retval);
            Debug.write(el.serialize());
        </handler>


In my debug window I perfectly see the data coming from my request:

My grid component looks like this:
  <grid id="test">
    <gridtext editable="false" datapath="@id"
datatype="number">uid</gridtext>
    <gridtext datapath="@displayname" width="200">Project</gridtext>
  </grid>


Currently I am a bit lost on how to apply the data from LzDataElement to
my grid.
I have take a look at teh grid examples, however they directly use a XML
to retreive
data, while in my case I need to apply it to my grid.

Any pointers??

thanks,
Ries






_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to