Configurable Form View of Multiple Rows and Columns with programHTMLOutput

If the Field Type is set to programHTMLOutput, you can use the setting Multiple Fields to display multiple rows and columns from a single program html output.

Possible values are true or false. When Multiple Fields=false, output from the program is displayed as a normal programHTMLOutput field.

Setting Multiple Fields=true implicitly hides the label and the configurable form does not provide table row and cell html tags while displaying corresponding field values. The programHTMLOutput JPO's must format the field's display and provide the necessary table row and cell html tags.

The Field Type must be programHTMLOutput and the value form program must be enclosed with <tr> tags. This means program html output must provide entire row(s) to display in proper html output.

The system passes an additional value (equates to Total number of table Columns) to the JPO when the Field Type is set to programHTMLOutput.

If the field count is not known, you can obtain the value using a JPO with the following code:

HashMap programMap = (HashMap) JPO.unpackArgs (args);
Integer maxCols = (Integer)programMap("maxCols");