Class ListContentTableService
- All Implemented Interfaces:
HTMLTableServiceEventListener
The primary function of this service to allow the retrieval of the contents, both UrlData and ApplicationData, and presents the those contents in two Tables. One table for the UrlData and one Table for the ApplicationData. The display characteristics of the tables are separately controlled as is presentation. So the tables can either look the same or they can look different. The tables can be presented one after the other or in different parts of the Page.
Currently, AggregateData is not supported. It will be in the future.
To use ListContentTableService, the following Windchill script call needs to be made
tableService action=initializeContents
After this call, the URLData contents and the ApplicationData contents are available to be displayed. There is a call to initialize the HTMLTable object for each type of content. This allows the two tables to be controlled, both in style and position, separately.
For URLData, the following call initializes a WTHtmlTable to present the URLData
tableService action=initURLDataTable URLDATAATTRIBUTES=urlLocation,description
For ApplicationData, the following call initializes a WTHtmlTable to present the ApplicationData
tableService action=INITAPPLICATIONDATATABLE APPLICATIONDATAATTRIBUTES=fileName,format,fileSize,modifyTimestamp,createdBy
Once these WTHtmlTable are created, the rest of the HTML Table Services are available customize them, as shown below.
An example of using the ListContentTableService is :
<SCRIPT LANGUAGE=Windchill>
<!--
tableService action=initializeContents
tableService action=initURLDataTable URLDATAATTRIBUTES=urlLocation,description
tableService action=setHeaderAttributes name=ALL font.size=2
th.align=left
tableService action=setColumnAttributes name=ALL font.size=2
td.bgcolor=#e3e3cf
tableService action=setTableAttributes table.width=100%
tableService action=show
-->
</SCRIPT>
<SCRIPT LANGUAGE=Windchill>>
<!--
tableService action=INITAPPLICATIONDATATABLE APPLICATIONDATAATTRIBUTES=fileName,format,fileSize,modifyTimestamp,createdBy
tableService action=setHeaderFromResource POSITION=4
RESOURCEBUNDLE=wt.enterprise.enterpriseResource RESOURCEKEY=UPDATED_BY
tableService action=setHeaderAttributes name=ALL font.size=2
th.align=left
tableService action=setColumnAttributes name=ALL font.size=2
td.bgcolor=#e3e3cf
tableService action=setTableAttributes table.width=100%
tableService action=show
-->
</SCRIPT>
There might be some line wrapping in the text above. All proper Windchill script lines above should begin with tableService.
Supported API: true
Extendable: false
-
Field Summary
Fields inherited from interface wt.templateutil.table.HTMLTableServiceEventListener
HTML_TABLE -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.voidinitApplicationDataTable(Properties props, Locale locale, OutputStream os) Deprecated.voidinitializeContents(Properties props, Locale locale, OutputStream os) Deprecated.voidinitURLDataTable(Properties props, Locale locale, OutputStream os) Deprecated.voidperformAction(Properties props, Locale locale, OutputStream os) Deprecated.voidsetHtmlTable(HTMLTable a_HtmlTable) Deprecated.
-
Method Details
-
performAction
Deprecated.Performs the action defined by the value of the key ListContentTableService.ACTION in the props parameter.If either props == null or there is not a value for ListContentTableService.ACTION, an exception is thrown.
The list of valid actions are
- INITIALIZECONTENTS
- INITURLDATATABLE
- INITAPPLICATIONDATATABLE
- SHOWURLDATA
- SHOWAPPLICATIONDATA
Supported API: true- Parameters:
props-locale-os-- Throws:
WTException
-
initURLDataTable
Deprecated.Initializes the WTHtmlTable ( using a RowDataTableModel ) that will be used to generate the table that presents the URLData in the Context Object. The current HTMLTable instance to be used in the HTML Table Service is set to this new WTHtmlTableThe Basic format of the Windchill script call is
tableService action=initURLDataTable URLDATAATTRIBUTES=<Comma separated list of attributes/column handles>Some additional parameters that can be passed in the Windchill Script call are
- USECHECKBOXTABLE=<true/false> - Indicates whether a checkbox column should be placed at front of the table
- NO_RESULTS_MESSAGE_RESOURCE=<Fully qualified classpath to a ResourceBundle> -
- NO_RESULTS_MESSAGE_KEY=<Name of a Key in the ResouceBundle above> - Key to message to display in the case that there are not any URLData object in the Context Object.
Supported API: true- Parameters:
props-locale-os-- Throws:
WTException
-
initApplicationDataTable
public void initApplicationDataTable(Properties props, Locale locale, OutputStream os) throws WTException Deprecated.Initializes the WTHtmlTable ( using a RowDataTableModel ) that will be used to generate the table that presents the ApplicationData in the Context Object. The current HTMLTable instance to be used in the HTML Table Service is set to this new WTHtmlTable.The Basic format of the Windchill script call is
tableService action=initApplicationDataTable APPLICATIONDATAATTRIBUTES=<Comma separated list of attributes/column handles>Some additional parameters that can be passed in the Windchill Script call are
- USECHECKBOXTABLE=<true/false> - Indicates whether a checkbox column should be placed at front of the table
- NO_RESULTS_MESSAGE_RESOURCE=<Fully qualified classpath to a ResourceBundle> -
- NO_RESULTS_MESSAGE_KEY=<Name of a Key in the ResouceBundle above> - Key to message to display in the case that there are not any ApplicationData object in the Context Object.
Supported API: true- Parameters:
props-locale-os-- Throws:
WTException
-
initializeContents
Deprecated.Initializes the URLData Vector and the ApplicationData Vector from from current Context Object for the TemplateProcessor processing the HTML template from which the Windchill script call was made.
Supported API: true- Parameters:
props-locale-os-- Throws:
WTException
-
getHtmlTable
Deprecated.Gets the value of the attribute: htmlTable.
Supported API: true- Specified by:
getHtmlTablein interfaceHTMLTableServiceEventListener- Returns:
- HTMLTable
-
setHtmlTable
Deprecated.Sets the value of the attribute: htmlTable.
Supported API: true- Specified by:
setHtmlTablein interfaceHTMLTableServiceEventListener- Parameters:
a_HtmlTable-
-