cancel
Showing results for 
Search instead for 
Did you mean: 

How to set different row - column visibility attribute

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi jianhong gu ,

If u hide a table column, it will be hidden for all the rows.

regards

Sumit

Former Member
0 Kudos

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