Versions Compared

Key

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


As of July 25th, 2023, there is a content freeze on this page
Note
titleContent Freeze
Note

This API is deprecated as of version 7.16.0. Use pjs.refParm() instead.

This method is used for passing parameters by value with pjs.call()

Parameters

  1. Value - The value to pass. 

  2. Config - A configuration object of the format used by pjs.define()

Or (alternative use)...

  1. Field name - A String containing the name of a Profound.js field.

Return Value

An object that can be passed to pjs.call() to pass by value.

Examples

...

Call an IBM i Program with By-Value Parameter
code
Code Block
const input = 123;
pjs.call("mypgm", pjs.parm(input, { type: "packed decimal", length: 7, decimals: 2 })); 
title

Call an IBM i Program with By-Value Parameter, Using a Field Name
Code Block
pjs.define("input", {type: "packed decimal", length: 7, decimals: 2, initValue: 123});
pjs.call("mypgm", pjs.parm("input"));

...