Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all articles
Browse latest Browse all 69588

how to customize variable name

$
0
0

Hi,

I want to access desired variables by passing variable name type string to it and it will give me value of the variable.

 

eg.

 

variableName (type string)="variable1"; <input parameter>

variableOutResult (type int) <output parameter>

variable1 <int type>=1; (default value)

variable2 <int type>=2; (default value)

 

using setValue activity. I want to create an expression which will return default value of variable1 or variable2

 

XPath mapping

(Location)                                                                                 (Expression)

/process_data/@variableOutResult                                            "/process_data/@"+"/process_data/variableName"         <red colored string is access to a variable which has value as variable1 or variable2>

underlying vauriable will form "/process_data/@variable1" which should store value to variableOutResult and give result as 1.

 

Please let me know if you need more clarification.

 

 

Regards

Sunil


Viewing all articles
Browse latest Browse all 69588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>