[Laszlo-user] dynamic datapaths and replication manager.

Shishir Ramam sramam at gmail.com
Mon May 12 08:50:20 PDT 2008


Hi,
I have a datapath that is set dynamically, and matches multiple elements.
However I'm unable to make the elements layout in the view.

Following is the simplest example that illustrates the problem.
All text elements in the "details" view overlay on top of each other.

All help is much appreciated.
-shishir


<canvas width="100%" height="50%" debug="true">
  <dataset name="ds">
    <mylists>
      <myelem>elem[1]# </myelem>
      <myelem>elem[2]# </myelem>
      <myelem>elem[3]# </myelem>
    </mylists>
  </dataset>
  <window width="100%" height="100%">
    <method event="oninit">
      this.details.setDatapath('ds:/mylists/myelem');
    </method>
    <view name="details" width="100%" height="50%">
      <text>
        <datapath xpath="text()" replication="resize"/>
      </text>
      <simplelayout axis="y"/>
    </view>
  </window>
</canvas>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080512/c9e210a0/attachment.html


More information about the Laszlo-user mailing list