Try OpenEdge Now
skip to main content
Application Developer's Guide
Developing an application : Using JavaScript in a workstep : Integrating JavaScript : Reading dataslot values
Reading dataslot values
You can read dataslot values in a workstep using the get() methods. Each of these methods are type specific and you must invoke the appropriate method based on the dataslot type.
The methods for reading dataslot values are:
*Object.jst.getDataSlotValue(String dsName);
For example, you could read the string dataslot empName using the following code:
var name = jst.getDataSlotValue("empName");
Similarly, to read the double dataslot empSalary, use the following code:
var salary = jst.getDataSlotValue("empSalary");