Try this:
<window width="100%" height="100%">
<handler name="oninit">
this.details.setDatapath('ds:/mylists');
</handler>
<view name="details" width="100%" height="50%">
<text>
<datapath xpath="myelem/text()" replication="resize"/>
</text>
<simplelayout axis="y"/>
</view>
</window>
On Mon, May 12, 2008 at 11:50 AM, Shishir Ramam <[EMAIL PROTECTED]> wrote:
> 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>
>
>
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]