Daniel, which version of laszlo are you using ? Im at 3.2

On 6/16/06, Daniel Salama <[EMAIL PROTECTED]> wrote:
> The way we do it, which seems to work for us, is:
>
> <class name="foo">
>    <dataset name="dset" />
>    <datapointer name="mydp" xpath="local:dset:..." />
> </class>
>
> Also, note that in your example (which I supposed is not your real
> code), you are not closing the dataset tag appropriately (the /> at
> the end).
>
> - Daniel
>
> On Jun 16, 2006, at 12:14 PM, Not Zippy wrote:
>
> > Hi
> >
> > I have a class similar to the following
> > <class name="foo">
> > <dataset name="myLocalds">
> > <datapointer name="mydp" xpath="local:classroot.myLocalds:/element
> > [2]"/>
> > </class>
> >
> > And I get
> > WARNING: local dataset "classroot,myLocalds" not found in  #foo
> >
> > Looking through the code it appears the datapointer is using
> >         var q = new _root.LzParsedPath( pa, this);
> > to parse the xpath.
> >
> > However in LzParsedPath the following code is commented out
> >             if ( name == "new" ){
> >                 //_root.Debug.write( "setting to anondset" );
> >                 this.context = new this.AnonDatasetGenerator( this );
> >         /*    } else if ( name == "localdata" ) {
> >                 this.context = node.getLocalDataContext();
> >                 _root.Debug.write('found local dataset 2',
> > this.context);
> >                 this.islocaldata = true;
> >         */
> >             } else {
> >                 this.context =  _root.canvas.datasets[ name ];
> >             }
> >
> > Is there a better way to create a datapointer pointing to a
> > localdataset ?
> >
> > Thanks
> > _______________________________________________
> > Laszlo-user mailing list
> > [email protected]
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to