Portlet Factory, Version 6.1.2


 

TableMetadata

The data in the TableMetadata variable is static and you can always access it using an indirect reference or with a call to the webAppAcccess.getVariables().getXml("TableMetadata") method. Upon submission of a form, any table data is accessed as input data, similar to other input controls. The syntax of accessing table input is "Inputs/TableName/...".

Table data content can include:

TableName/TableData

This is the table data that appears on the displayed page. If the table is sorted, the rows are sorted by the same sorting column in this table data, which is different from the order they are in the original data source. If the table's column has an input type of cell object, the value change made by a user on the page is placed in this table. As a result, the table is accurate as to what is displayed on the page before it is posted to the server. But it does hold a complete set of data including those columns and rows not displayed on the page.

TableName/CurrentRow

If an action is triggered by a column cell, this is the row data of the active row.

TableName/CurrentColumnName

If an action is triggered by a column cell or header cell, such as a button in a column, this identifies the column the cell was in.

TableName/CurrentRowIndex

If an action is triggered by a column cell or header cell, this is the row index that the cell's data is in the original table. This index can be used to access data from the original table data. If the action is triggered by a header cell, the index value is -1.

TableName/CurrentDisplayRowIndex

If an action is triggered by a column cell or header cell, this is the row index that the cell's data is in the displayed table. This index can be used to access data from this table's TableData. If the action is triggered by a header cell, the index value is -1.

Parent topic: Accessing table data


Library | Support |