[Laszlo-user] questions about datapaths and grid
Paulo Scardine
paulo at scardine.com.br
Fri Aug 1 06:03:40 PDT 2008
Geoff Crawford wrote:
> At 05:59 PM 7/31/2008, Paulo Scardine wrote:
>
>> How do you bind the selected value on the grid to an edit/add form?
>
> I don't. By convention the base class of the buttons bar fires
> first a change in the tab to the edit/add form, then a
> "displayData" method passing along the XML of the selected
> row only. What ever is at the other end is bound to XPath of
> that incoming XML. So the parameter passing really decouples
> the binding directly. If I change to an entire different
> grid, the edit/add form could care less so long as the data
> it gets passed is there.
>
This seems very clever.
In the examples I found at the Developer Guide, seems that a datapath is
almost always tied to a dataset. When I use datapath.setNodes() with the
selected grid node, the replicationmanager behavior is changed. Is there
any sample showing the trick to make a datapath more reliably point to
arbitrary xml data?
In another subject, I made some experiences with the grid component, and
I could not find any event for the 'sort' operation in the reference
guide. I have a widget showing "current record/total records" and it
works well except it is not updated when the grid reorder gridlines.
Many thanks,
--
Paulo
More information about the Laszlo-user
mailing list