Scripting > Access StreamServe variables in the XFA processor

Access StreamServe variables in the XFA processor
StreamServe scripts variables can be read directly from a script in the XFA processor. The XFA processor adds the variables to a data set named strs which can be accessed from both Java script and FormCalc scripts in the loaded XDP template
All StreamServe variables created prior to the execution of the process can be accessed through the data connection by using the following syntax:
xfa.datasets.strs.variables.variableid.value
When a StreamServe Message is used as the data connection for a template (i.e. the setting Add the Message as a data connection in the Data view is enabled), the following syntax is also valid:
$record.variables.variableid;
Example 11
$myvar = "myvalue";
//Assigns "myvalue" to a StreamServe variable named "myvar"
 
Example 12
this.rawValue = xfa.datasets.strs.variables.myvar.value;
//Assigns the value of the StreamServe variable "myvar" to the raw
value of the current object.
 
Note:
OpenText StreamServe 5.6 Updated: 2013-03-01