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

Reply via email to