|
More question. How to set the new creating LzDataset to another view in Class ? The code1 works fine, but the code2 dose not work. It said "couldn't find dataset for ds:/". I think it is the cause of using class tag. Something about localdataset i guess. Any advice thanks. mt1 ===========[ code1 ]============
<canvas debug="true">
<method event="oninit">
var ds = new LzDataset( null, { name: 'ds',
src: 'sample.xml',
request: 'true' } );
Debug.write( ds );
this.l.tl.setDatapath( 'ds:/' );
</method>
<list name="l" width="180">
<textlistitem name="tl" datapath="" text="$path{'something'}"/>
</list>
</canvas>
===========[ code2 ]============
<canvas debug="true">
<class name="cc">
<method event="oninit">
var ds = new LzDataset( null, { name: 'ds',
src: 'sample.xml',
request: 'true' } );
Debug.write( ds );
this.l.tl.setDatapath( 'ds:/' );
</method>
<list name="l" width="180">
<textlistitem name="tl" datapath="" text="$path{'something'}"/>
</list>
</class>
<cc/>
</canvas>
mt1 wrote:
Oh it was good. Thank you M. Makis wrote: |
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
