Versions Compared

Key

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

...

Code Block
languagejs
CBXFORMCONTAINER.getWindow("CONTAINER_ID", config)

/*
* In this API,
* 'CONTAINER_ID' is a mandatory parameter. This should be the container, which has the Form ID configured to it.
* 'config' is an optional parameter. This parameter should contain the configuration of the container.
*/

A sample code for reference is as follows:

Code Block
languagejs
CBXFORMCONTAINER.getWindow("CONTAINER_EVE_TYPE_MASTER");

getWindowByFormId() API

Use the getWindowByFormId API to open a form using the container ID and form ID with data, when the same form has multiple containers.

The syntax for this API is:

Code Block
languagejs
CBXFORMCONTAINER.getWindowByFormId("FORM_ID","CONTAINER_ID",modelData, configObj)

...



/*
* In this API,
* 'FORM_ID' is a mandatory parameter. This should be the form ID, which has the containers configured for it.
* 'CONTAINER_ID' is a mandatory parameter. This should be the container, which has the same Form ID configured to it.
* 'modelData' is an optional parameter. This should be the array of data values to set on the Form Items.
* 'config' is an optional parameter. This parameter contains the configuration of the container; in addition to it,
* this object also contains the isTxnHdrReqd * flag and the Transaction Header form to handle the transaction data flow.
*/


  • CBXFORMCONTAINER.getWindowByFormId("FORM_ID","CONTAINER_ID",modelData, configObj)

In this API,

FORM_ID – This is a mandatory parameter. This should be the form id, which has thecontainers configured for it.

...