cancel
Showing results for 
Search instead for 
Did you mean: 

Table column width

nikhil_bose
Active Contributor
0 Kudos

hi folks,

How can we change width of individual table columns' width ?

thanks

nikhil

Accepted Solutions (0)

Answers (3)

Answers (3)

nikhil_bose
Active Contributor
0 Kudos

To set each column manually we have to use

IWDTable.setFixedTableLayout(boolean);

Thanks for all

Former Member
0 Kudos

Hi,

Select the table column for which you want to change the width,

from the properties View change the width property

it can be in pixels or in %

Regards

Ayyapparaj

nikhil_bose
Active Contributor
0 Kudos

hi ayyapparaj,

I need it whilst runtime.

An RFC returns the table values and the table columns are set according to the length of column headers or row values. I need to restrict the length as it goes beyond single screen.

Former Member
0 Kudos

Hi,

you can bind the column width to a context attribute and at run time you can assign a value to it.

Regards,

Sudhir

Former Member
0 Kudos

hi,

create an attribute of type string and bind this to the width property.

Based on the rfc set the value to this attribute.

Regards

Ayyapparaj

nikhil_bose
Active Contributor
0 Kudos

I need to set the width to certain px say 5 px. It is working fine for the very first time. When I trigger the RFC, the table columns are again set to return value of RFC. I tried setting width in wdDoModify() but it doesn't reflect any change.

Former Member
0 Kudos

Hi,

Are you giving it inside

if(first){

}

block in doModifyView()

Regards

Sudhir

Former Member
0 Kudos

Hi,

There is property for TableColumn as width with which you can change the columns widths.

Check [this|http://help.sap.com/saphelp_nw70/helpdata/en/44/13e4c9b4d00889e10000000a422035/frameset.htm] link.

thanks & regards,

Manoj