on 11-22-2007 1:40 PM
Hi All,
I need to add one column dynamically to the existing table and also I have to populate the data dynamically. Can you help me out in this? Thanks in advance.
Message was edited by:
Bharath Akuthota
Either create it a design-time invisible and make it visible if needed (probably more simply than by code), or use some code like this:
wdDoModifyView(...)
{
if (<table structure changed>)
{
IWDTable table = (IWDTable) view.getElement("TableID");
IWDTableColumn col = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
table.addColumn(col); // NW04
table.addGroupedColumn(col); // NW 7.0
IWDInputField editor = (IWDInputField) view.createElement(IWDInputField.class, null);
col.setTableCellEditor(editor);
editor.bindValue(<attribute inside table data source that should be edited>);
}
}
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 |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.