Object or Relationship ID of a Selected Table Item

Once you have configured a table page to display objects and/or relationships in a table, you will typically want to add links to the page so users can work with the objects in the table.

You should display links that apply to objects or relationships in a table as hyperlinked data in the table or as toolbar items at the bottom of the page. Toolbar items should be commands that are independent of the table data, such as a Create New or Show Report link.

The JSP or JPO that gets called when one of these links is clicked needs the object or relationship ID(s) to work on. This table summarizes how the dynamic UI components make the IDs available to the requested page depending on the kind of link that is used.

If the table page link is: Clicking the link results in: For details, see:

Hyperlinked data within the table

The objectId, relId or parentOID parameter automatically being put into the request. The availability of the parameter name depends on whether the column displays business object or relationship data.

The objectId and relId are values for the selected row(s) and parentOID is the parent objectId passed to the Table page.

Table Columns

A toolbar menu command that requires one or more selected table rows (selected using check boxes or a radio button in the left table column)

The emxTableRowId parameter is available to the requested URL as long as the Submit setting for the toolbar item is True. The emxTableRowId parameter contains:

  • For a table generated by a temp query Inquiry or JPO program returning object ID: one or more object IDs (one for each checked checkbox)
  • For a table generated by an expand Inquiry or a JPO program returning object ID and rel ID:

    one or more object ID, relationship ID pairs (one for each checked check box or one for the selected radio button). The relationship ID and object ID values are separated by a pipe | character.

For instructions on configuring the toolbar item, see Toolbars.

When programming custom JSPs, make sure you use built-in parameters instead of custom parameters. For more information, see Parameters for Table Objects.