Thanks Henry - you appear to be right - It is something to do with the way ondata is being triggered. I adapted the datapath to only receive the xpath attribute when data is being sent through the 'action' dataset: <class name = "datapipe" extends = "node"> <dataset name="list" type="http" request = "false" /> <dataset name="action" type="http" request = "false" /> <method reference = "action" event="ondata"> dp.setAttribute("xpath", "local:action:/"); </method> <datapointer name = "dp"> <method event="ondata"> if (this.xpathQuery("result/text()") == "success") { parent.list.doRequest(); Debug.write("Operation succeeded"); } else { Debug.write("Operation failed"); } </method> </datapointer> </class> Now, the first time I send data to the action dataset, everything works fine - the xpath query executes exactly as expected. However, all subsequent requests do not seem to trigger the ondata event within the datapointer. Any ideas why this might be? I tried adding 'rerunxpath="true"' but didn't notice a change. On 1 May 2006, at 18:27, Henry Minsky wrote: I believe an empty local datset will be created by the <dataset> declaration. That is, it will have no child elements. There may be some issue with how you are generating the ondata events. When I did this manually from the debugger, the xpath query worked fine. |
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
