on 07-10-2006 5:36 PM
Hi all,
I have to populate my table on certain search criteria.The table is binded to certain responce parameters of the web service.
As of now my requirement is to add a extra column at which in the run time will have the column name as LINK and the value for each row should be "click to view".
My query is how to achieve this.
Regards
DK
Add the following code in method wdDoModifyView():
if (firstTime)
{
IWDTable table = (IWDTable) view.getElement("ID-of-table");
IWDTableColumn column = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
table.addColumn(column);
IWDLinkToAction link = (IWDLinkToAction) view.createElement(IWDLinkToAction.class, null);
column.setTableCellEditor(link);
link.setText("Click to view...");
link.setOnAction(wdThis.wdGetOnViewAction());
link.mappingOfOnAction().addSourceMapping
(
"nodeElement",
"element"
);
}
Add an action named "View" with a parameter named "element" of type IWDNodeElement.
Then at runtime this action parameter will contain the context node element corresponding to the table row where the link has been clicked.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.