cancel
Showing results for 
Search instead for 
Did you mean: 

Popup table

former_member205842
Participant
0 Kudos

Hi ,

      i created a view with table and fiew input fields.....in that table i have few editable  columns, when am displaying that table in  popup window am not getting those columns as editable mode.....am getting everything as display mode...please help me to solve this...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, have you used READONLY attribute?

follow this example

select * from sflight

  into corresponding fields of table it_flights up to 100 rows.

loop at it_flights into ls_flights .

if ls_flights-price = '185.00'.

    ls_flights-readonly = abap_true.

else.

     ls_flights-readonly = abap_false.

endif.

append ls_flights to it_final.

endloop.

data: obj_table type ref to cl_wd_table,

      lr_column type ref to cl_wd_table_column,

      lr_column1 type ref to cl_wd_table_column,

      lr_input type ref to cl_wd_input_field,

      lr_input1 type ref to cl_wd_input_field.

obj_table ?= view->get_element( 'TABLE1' ).

obj_table->set_visible_row_count( value = 50  ).

lr_column = obj_table->get_column(

               id         = 'TABLE1_PRICE'

*              INDEX      = INDEX

                 ).

lr_input = cl_wd_input_field=>new_input_field(

      bind_value          = 'FLIGHTS.PRICE'

      id                  = 'IP1'

        ).

lr_input->set_read_only( value = abap_false   ).

lr_input->bind_read_only( path = 'FLIGHTS.READONLY'   ).

*Path means your nodename.attribute name

lr_column->set_table_cell_editor( the_table_cell_editor = lr_input  ).