Portlet Factory, Version 6.1.2


 

Accessing table data

You can access table data when a user performs an action on the page by getting the values from a set of variables that the Dynamic Table builder adds to the WebApp.

You can see these variables by examining the variables objects in the WebAppView in IBM® WebSphere Portlet Factory Designer. The following table lists and describes these variables.

Table 1. Dynamic Table builder variables
Variable Description
TableNameLoopCounter As the rows of the table get rendered, IBM WebSphere Portlet Factory increments the LoopCounter for the table.
TableNameLoopVar As the rows of the table get rendered, WebSphere Portlet Factory extracts the row data from the data source and stores it in this variable.
TableMetadata Contains information about all the tables in the model, including column names and titles.

  • Using loop variables

    The Dynamic Table builder provides a set of loop variables for other builders to use to define builders within a table. The table loop variable is significant only during table processing time. It is not used in any other setting. Do not use table loop variables if the builder will not be placed within a table.

  • 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.

Parent topic: Dynamic Table builder


Library | Support |