Hi Max,

Many thanks for the reply and for the explanation. I've tried using  
your modelcontroller/datamanager in place of my own version but am  
experiencing problems getting the records to automatically update  
when a new record is created.

Perhaps you can let me know where I'm going wrong? This code creates  
the record:

<button onclick="newPerson()">
        Submit
        <method name="newPerson"><![CDATA[
                addressData.setSrc("http://localhost:3000/names/create/"; +  
"firstname=" + parent.firstName.getText() + "&surname=" +  
parent.surName.getText());
                addressData.doRequest();
           ]]></method>
</button>

And the list of records looks like this:

<view name="rowOfData" >
        <datapath name="d" xpath="addressData:/records/name" pooling="true" />
        <simplelayout axis="x" />
        <text resize = "true" datapath="@firstname" />
        <text resize = "true" datapath="@surname" />
</view>

The data gets submitted correctly but the list displaying the records  
becomes blank rather than refreshing to show the new records. Is  
there an extra step I have to make to request the updated records?

Many thanks,

Nick

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

Reply via email to