JimA
04-15-2008, 09:11 AM
Hi All: I stumbled across OL recently and am very impressed by what I see! Can't seem to figure out how to make the DataGrid component work correctly, though. It appears that the component is reading the xml but nothing shows up. Code is:
<canvas width="300" bgcolor="0xeaeaea">
<dataset name="truckdata" src="truck.xml"/>
<grid datapath="truckdata:/trucks/truckrecord">
<gridcolumn width="100"> Stock No
<text datapath="stockno/text()"/>
</gridcolumn>
<gridcolumn width="100"> Year
<text datapath="year/text()"/>
</gridcolumn>
<gridcolumn width="100"> Make
<text datapath="@make"/>
</gridcolumn>
</grid>
</canvas>
The following shows in the debugger:
INFO @base/basefocusview.lzx#274: «lz.focusoverlay».setVisible(null) is deprecated. Perhaps you meant «lz.focusoverlay».setVisible(false)? If not, use «lz.focusoverlay».setVisibility('collapse').
Many thanks for any help.
Jim
<canvas width="300" bgcolor="0xeaeaea">
<dataset name="truckdata" src="truck.xml"/>
<grid datapath="truckdata:/trucks/truckrecord">
<gridcolumn width="100"> Stock No
<text datapath="stockno/text()"/>
</gridcolumn>
<gridcolumn width="100"> Year
<text datapath="year/text()"/>
</gridcolumn>
<gridcolumn width="100"> Make
<text datapath="@make"/>
</gridcolumn>
</grid>
</canvas>
The following shows in the debugger:
INFO @base/basefocusview.lzx#274: «lz.focusoverlay».setVisible(null) is deprecated. Perhaps you meant «lz.focusoverlay».setVisible(false)? If not, use «lz.focusoverlay».setVisibility('collapse').
Many thanks for any help.
Jim