Hello,
another way than extending the FieldTag could be using the Plugin interface of X-Application.
I don’t know exactly what you want to do, but according to your description a plugin called by directelementaction could be a solution, e.g.
<xapp:directelementaction type=“printImageTable” select=“/Doctype/SubElem1/SubElem2”/>
Within a Java class you implement the method for printing out the table dependent on the content of the selected target node, e.g.
<BR>package myPackage;<BR><BR>public class MyClass {<BR> public static <B>String</B> getTable(Element elem) {<BR> String result = "<table><tr><td>" + elem.getText() + "</td></tr></table>";<BR> return result;<BR> }<BR> ...<BR>}<BR></pre><BR><BR>For mapping the action 'printImageTable' to the method 'getTable' add an entry to the xapplication.xml<BR><BR><pre class="ip-ubbcode-code-pre"><BR><element><BR> <action name="printImageTable" method="myPackage.MyClass.getTable"/><BR></element><BR></pre><BR><BR>or if the action is restricted to a certain element use the name attribute<BR><BR><pre class="ip-ubbcode-code-pre"><BR><element name="SubElem2"><BR> <action .../><BR>
If you need more information about capabilities of plugins, have a look at the Plugin documentation or post a request to the community.
Bye,
Christian.
#API-Management#webMethods#Tamino