05-04-2021 08:18 AM
Hello,
How can test if java code variable ($VARIABLE) starts-with a string in XML code.
When I used when attribute like this:
<group when="{starts-with({$PROVIDER_NAME},'voip')}"> .... </group>
I got the following error:
only one XPATH expression: '{starts-with({$PROVIDER_NAME},'voip')}' allowed in 'when' attribute
Solved! Go to Solution.
05-06-2021 07:43 AM
Try removing the curly brackets around the variable $PROVIDER_NAME inside the when-expression.
05-06-2021 07:43 AM
Try removing the curly brackets around the variable $PROVIDER_NAME inside the when-expression.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide