Perhaps mydata has an id but not a name in the canvas?

-Max

Henry Minsky wrote:
The code below is a trimmed down testcase from the rpc library. It gets this
error in legals but not in trunk:

ERROR: foo.lzx:12: reference to undefined variable 'mydata'

The line 12 is trying to evaluate the variable "mydata", which should be
bound to the <dataset> that
is declared before it.  It is in trunk, but in legals the value isn't bound
yet when the "remotecall" instance is being created.

If I print it's value from the debugger, after things have inited, mydata is
properly bound to a dataset.
So something is weird with either the context in which the name 'mydata' is
evaluated, or the order in which the name gets set on
a node.


<canvas width="800" height="800" debug="true">

   <debug x="300" y="20" width="500" height="400" />

   <class name="remotecall" extends="node">
       <attribute name="dataobject" value="null" type="expression" />
   </class>

   <dataset name="mydata" />

   <view id="foo">
       <remotecall dataobject="mydata" />
   </view>
</canvas>





--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to