PDA

View Full Version : How do i pass the datapath of a class


mallesh
01-14-2004, 06:32 AM
Hi Antun,

How do i pass the datapath of a class?
like canvas.imageupload.deluploadclip(Item.datapath);

<Item datapath="ArtImg" stretches="both" width="90" height="90" >

This class is inside the library and that library is included in canvas.

I can able to pass the datapath of an view .But i dont know how to refer the class like refering the view by using id attribute.



Thanks
Mallesh.

antun
01-14-2004, 09:43 AM
By default, datapaths get inherited. So if you do something like:


<view datapath="mydataset:/foo/bar">
<view name="myview" datapath="@myattribute" />
</view>


... then myview will have a datapath of:

mydataset:/foo/bar/@myattribute

There isn't a way to retrieve the full XPath of myview programatically.

-Antun