on 08-08-2007 3:36 AM
Hi
There are 5 models pointing to different systems. The user will randomly select the system and accordingly the models will get executed.
My issue is in the second screen I need to populate a table which should display the data from multiple models at the same time.. I need to loop trough the models and check, the search term entered by the user, in which all system the same is present and accordingly I need to display in table...
Please help me by placing some sample code for looping in multiple output nodes and create table dynamically and display the data in the coloumn...Coloumn numbers are fixed.....
Regards
SU
Hi
I suggest to create a value node to show the results in a view.
and loop at all the model nodes and when match found create an new element for the table and add it to the table node.
This is the code to Create Table and its columns dynamically.
place the code in wdDoModifyView()
IWDTable <tableref> = (IWDTable) view.createElement(IWDTable.class,"<tablename>");
<tableref>.bindDataSource(wdContext.node<node>().getNodeInfo());
IWDTableColumn <colref> =(IWDTableColumn)view.createElement(IWDTableColumn.class,"F");
IWDInputField inf = (IWDInputField )view.createElement(IWDInputField.class,"d");
inf.bindValue(wdContext.node<node>().getNodeInfo().getAttribute("<attribute>"));
<colref>.setTableCellEditor(inf);
<tableref>.addGroupedColumn(<colref>);
IWDTransparentContainer <grp> =(IWDTransparentContainer)view.getElement("RootUIElementContainer");
<grp>.addChild(<tableref>);
Regards
Abhimanyu L
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 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.