AddInputRow method: Business Interlink class

Syntax

AddInputRow(inputname, value)

where inputname and value are in matched pairs, in the form:

inputname1, value1 [, inputname2, value2] . . .

Description

The AddInputRow method adds a row of input data (value) from PeopleCode variables or record fields for the Business Interlink object executing the method. These must be entered in matched pairs, that is, every input name must be followed by its matching value.

Note:

The input name, not the input path, of the interface definition is used for this method.

There must be an input name for every input parameter defined in the interface definition used to instantiate the Business Interlink object.

If you specify a record field that is not part of the record the PeopleCode program is associated with, you must use recname..fieldname for that value.

You can specify default values for every input name in the interface definition (created in Application Designer.) These values are used if you create a PeopleCode "template" by dragging the interface definition from the Project window in Application Designer to an open PeopleCode editor window.

Parameters

Parameter Description

inputname

Specify the input name. There must be one inputname for every input name defined in the interface definition used to instantiate the Business Interlink object.

value

Specify the value for the input name. This can be a constant, a variable, or a record field. Each value must be paired with an inputname.

Returns

A Boolean value: True if the input values were successfully added. Otherwise, it returns False.

Example

In the following example, the Business Interlink object name is SRA_ALL_1, and the input name, such as ship_site_name, are being bound to record fields, such as QE_RP_SITENAME or VENDOR_INFO.QE_RP_PROMISEDATE, to variables like &PARTNAME, or to literals, like 10 for quantity.

&SRA_ALL_1.AddInputRow("ship_site_name", QE_RP_SITENAME,  
   "promise_date", VENDOR_INFO.QE_RP_PROMISEDATE,  
   "request_date", QE_RP_ORDERREQDATE,  
   "subline_site_name", QE_RP_SITENAME,  
   "quantity", 10,  
   "part_name", &PARTNAME,  
   "site_name", INV_LOCATIONS.QE_RP_SITENAME);