Using XPath Notation
The TMF examples shown so far have used element IDs to identify elements whose attributes are to be changed. However, XPath notation can be used instead, if preferred.
<TemplateModifier>
<SetAttribute XPath="//Label[@ID='lblFilterDescription']" Caption="Filtrer par les valeurs des cellules." />
</TemplateModifier>
The example shown above uses an earlier TMF example with XPath notation, instead of an element ID. XPath can be very useful when you want to identify multiple elements with similar names or types.
In Studio, you can find the XPath of an element in a report or template by right-clicking on the element and selecting Copy XPath:
Selecting this option will copy the direct XPath of that element, the tag name, and ID attribute (if available) to the Clipboard, which can then be copied into a TMF.
See this external site for more information about XPath syntax.
Comments
0 comments
Please sign in to leave a comment.