I haven't looked at how the grid component works. I'm kind of scared of it actually . I just have a heuristic I use when<br>certain things don't work properly, wrap an extra view around them. It's a little more than black magic, but really it depends on specifically how the grid component is talking to it's (replicated) child views, and I don't know how that works :-(
<br><br><br><br><br><br><br><div><span class="gmail_quote">On 7/12/07, <b class="gmail_sendername">Yang</b> <<a href="mailto:a1pwak602@sneakemail.com">a1pwak602@sneakemail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Awesome. Why does that work, but not replicating the columns directly?<br><br>Also, I couldn't seem to get a similar trick to work for the second case.<br><br>On 7/12/07, Henry Minsky henry.minsky-at-......... |laszlo|
<br><...> wrote:<br>> Maybe something like this, with an intermediate view for each item?<br>><br>> <canvas width="100%" height="80%" debug="true"><br>> <debug fontsize="12"/>
<br>><br>> <dataset name="maindata"><br>> <maindata><br>> <item cell1="alpha" cell2="beta" cell3="gamma" /><br>> <item cell1="delta" cell2="epsilon" cell3="zeta" />
<br>> </maindata><br>> </dataset><br>> <grid datapath="maindata:/maindata"><br>> <view datapath="item[1]/@*"><br>> <gridtext/><br>> </view>
<br>> </grid><br>><br>><br>> </canvas><br>><br>><br>> On 7/12/07, Yang <<a href="mailto:a1pwak602@sneakemail.com">a1pwak602@sneakemail.com</a>> wrote:<br>> > I'd like to do something like the following:
<br>> ><br>> > <dataset name="maindata"><br>> > <maindata><br>> > <item cell1="alpha" cell2="beta" cell3="gamma" /><br>> > <item cell1="delta" cell2="epsilon" cell3="zeta" />
<br>> > </maindata><br>> > </dataset><br>> > <grid datapath="maindata:/maindata"><br>> > <gridtext datapath="item[1]/@*"/><br>> > </grid>
<br>> ><br>> > However, this doesn't work. $* returns a set of name-value pairs as a<br>> > dictionary object, not an array of values. Is there any way to get<br>> > this to work?<br>> ><br>
> > Similarly, the following doesn't work.<br>> ><br>> > <dataset name="maindata"><br>> > <maindata><br>> > <item><br>> > <cell1>alpha</cell1>
<br>> > <cell2>beta</cell2><br>> > <cell3>gamma</cell3><br>> > </item><br>> > <item><br>> > <cell1>delta</cell1>
<br>> > <cell2>epsilon</cell2><br>> > <cell3>zeta</cell3><br>> > </item><br>> > </maindata><br>> > </dataset><br>> > <grid datapath="maindata:/maindata">
<br>> > <gridtext datapath="item[1]/*/text()"/><br>> > </grid><br>> ><br>> > Thanks for any pointers.<br>> ><br>><br>><br>><br>> --<br>> Henry Minsky
<br>> Software Architect<br>> <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br>><br>><br></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">
hminsky@laszlosystems.com</a><br><br>