cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Button length in Table column?

Former Member
0 Kudos

Hi,

Can we set buttons lenght in table column?

In table I have some rows, clumn has button. It contains different names in each row. can we set to equal length for all buttons?

Cheers,

venkys.

Accepted Solutions (0)

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

In the design layout set the width for the button to some fixed width say 70 px then it will be same for all the rows.

and if you are creating the table dynamically at the runtime then just get the element button by its id and set the length by

using the method set_width( ) in the wddomodifyview method.

data lr_btn type ref to cl_wd_button.
  lr_btn ?= view->get_element( 'BTN' ).
  LR_BTN->SET_WIDTH( '90px' ).

thanks

sarbjeet