There is not a reproduction of partial data to a grid class and is troubled.
It will be good how to reproduce [1-3] data with the following cords in a grid class?
"rev.setDatapath( dp1 )" dose not work.

<canvas>
<debug y="150"/>
    <dataset name="dd">
       <resultset>
          <result id="1" name="a"/>
          <result id="2" name="b"/>
          <result id="3" name="c"/>
          <result id="4" name="d"/>
          <result id="5" name="e"/>
          <result id="6" name="f"/>
          <result id="7" name="g"/>
          <result id="8" name="h"/>
          <result id="9" name="i"/>
          <result id="10" name="j"/>
       </resultset>
    </dataset>
    <dataset name="ds"/>
   
    <method event="oninit">
        <![CDATA[
        var dp1 = "dd:/resultset/result[1-3]";
        v.vv.setDatapath( dp1 );
       
        rev.setDatapath( dp1 );
        ]]>
    </method>

    <view name="v">
        <simplelayout/>
        <view name="vv">
            <text datapath="@name"/>
        </view>
    </view>
   
    <grid name="rev" x="50">
        <gridcolumn name="gc1">ID
            <text name="gct1" datapath="@id"/>
        </gridcolumn>
        <gridcolumn name="gc2">D_NAME
            <text name="gct2" datapath="@name"/>
        </gridcolumn>
    </grid>
</canvas>


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to