Skip to Content
avatar image
Former Member

Multiple Models & Conditional Display in Dynamic Table.


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.....



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 08, 2007 at 04:59 AM


    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>");


    IWDTableColumn <colref> =(IWDTableColumn)view.createElement(IWDTableColumn.class,"F");

    IWDInputField inf = (IWDInputField )view.createElement(IWDInputField.class,"d");




    IWDTransparentContainer <grp> =(IWDTransparentContainer)view.getElement("RootUIElementContainer");



    Abhimanyu L

    Add comment
    10|10000 characters needed characters exceeded