on 02-15-2007 7:25 AM
Hi all,
I have a table in which 4 columns are fixed.. As per the the selection of a number by the user in the previous View some more columns should be added to this table
How am i to achieve this.
Points assured for help
wdDoModifyView(...)
{
if (<columns-should-be-added>)
{
IWDTable table = (IWDTable) view.getElement("tableID");
IWDTableColumn column = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
IWDTextView editor = (IWDTextView) view.createElement(IWDTextView.class, null);
editor.bindText(<some context attribute under table data source node>);
column.setTableCellEditor(editor);
table.addColumn(column);
<reset flag that columns should be added>;
}
}
This code is for NW04. In NW04s, use the GroupedColumn aggregation for adding columns.
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 |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.