PDA

View Full Version : reference doc gridcolumn example not working


chuckgom1
02-04-2009, 04:11 AM
Hi,

When you go to LZX reference manual , in "content" tab -> "gridcolumn" description, you have an example on how to use a gridcolumn:

the grid is bound to contactdata.xml which have "home_default" attributes = "0" in some of its <result> nodes.

however, all of the "home" column checkboxes are filled when you run contactdata.lzx.

Where is the problem ?
__________
a piece of contactdata.xml :
<resultset>
<result ID="154" home_default="0" />
.....
</resultset>
__________
a piece of contactdata.lzx :
....
<gridcolumn>
<checkbox value="$path{'@home_default'}" />
</gridcolumn>

senshi
02-04-2009, 08:55 AM
The underlying problem has been fixed at some time, because the same example works in latest trunk, see here (http://labs.openlaszlo.org/trunk-nightly/docs/reference/lz.gridcolumn.html). But I cannot explain what exactly has changed..