Expand my Community achievements bar.

How to do String Operation in input form

Avatar

Level 2


Hi,

Does anybody know how to do String Operation in the input forms?
We have a requirement to parse a value from one input field and pass a value to other input field dynamically.

1) <input required="true" xpath="@EMP_ID"/> // EMP_ID = es_name; es is countryCode which need to set in other input field
.....
....
..
<container>
2) <input enum="es_marketingName" type="sysenum" xpath="@marketingName"/>
</container>

1) What all the String Operations we can use in input form (Substring) ?

2) How can we pass parsed value from #1 using an expression in second input field in any Attributes?.

If above mentioned is not possible, is there anyway we can acheive using xsl:stylesheet ? 

Any help will be much appreciated.

Thanks,
Mrudul
@XSLT  @inputform

1 Reply

Avatar

Employee Advisor

Hello @mrudulm9146324 

To modify the context of the form,
use the 
<set value="<value>" xpath="<field>"/> tag, where <field> is the destination field, and <value> is the update expression.
use the <set expr="<value>" xpath="<field>"/> tag, where <field> is the destination field, and <value> is the update expression.
use the <set translatedExpr="<value>" xpath="<field>"/> tag, where <field> is the destination field, and <value> is the update expression having ACC Functions that we see in Expression Editor.

For your reference, sharing an example of translatedExpr

kishorep_0-1634834785918.png


Hope this helps!