Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejavascript
// 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);

...