on 01-16-2008 8:33 AM
Hi all:
I have one table in webdynpro for java. For example it have 4 rows, I need to set one column as different visible for row 1st and row 2nd .
column1 column2
row1 x -
row2 - x
Can I set it ?
Thanks a lot.
ya sure, u can
make a visibility element and assign it to the tablecelleditor of each column of ur table. Now in the code, u must have bound the table to a node, make the visibility element in the same node. Whichever row u want to make invisible, write the following code:
wdcontext.node<nodename>.get<node name>elementat(<the row which u wish to make invisible>).set<visibility context>(wdvisibility.NONE);
it will work.
Let me know if u need further help....
All The Best!!!
Regards
Gita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jianhong gu ,
If u hide a table column, it will be hidden for all the rows.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To set different appearence of the column you can use:
IWDTableColumn tabCol = (IWDTableColumn) view.getElement("<YOUR COLUMN ID>");
tabCol.setCellDesign(WDTableCellDesign.CRITICALVALUE_LIGHT);
To set different appearence of the row you can use:
IWDTable repTable = (IWDTable) viewObj.getElement("YOUR TABLE ID");
repTable.setDesign(WDTableDesign.ALTERNATING);
Hope this will help you.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.