...
Passing parameters is very simple with Profound.js because of support for Strongly Typed Fields. You can simply define a parameter field using the IBM i data type expected by the program you are calling. For example:
Code Block | ||
---|---|---|
| ||
// Define Parameters pjs.define("customerId", { type: "char", length: 8, initValue: "10000123" }); pjs.define("mode", { type: "char", length: 10, initValue: "DISPLAY" }); // Call Program pjs.call("CUST01R", customerId, mode); |
...