PDA

View Full Version : Put a bound datapath value directly into an attribute?


tspratt
01-16-2004, 11:26 AM
A replicating class is bound to a datapath so that the value of a text element, for example, can be set using the @[AttributeName] syntax.

Can I set a datapath attribute value directly into a class attribute value?

In the follwing snippet, I want to put the @value into the "itemvalue" class attribute's "value" attribute, instead of displaying it in the text element.

<class name="item" extends="listitem" >
<attribute name="itemvalue" value="@value" />
<text name="textCaption" datapath="@caption" />
<text name="textValue" datapath="@value" />
</class>

antun
01-16-2004, 11:29 AM
Yes, that's one of the new features in 2.0:


<attribute name="itemvalue" value="$path{'@value'}" />


-Antun