cancel
Showing results for 
Search instead for 
Did you mean: 

record selection in webdynpro

Former Member
0 Kudos

Hi,

    I have designed a webdynpro alv grid with 6 columns and i have disabled 5 columns and enabled 1 columns in that i am having 5 records and i have created a method "ON_CELL_ACTION" which is triggered on enter.My question is after enter i want to select next record automatically, please help me...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ram,

Create one more column  I.e Index.....In this column give the data like seqence numbers 1,2,3,4,5,6...

and hide the column..  and fallow below steps.

->

* Get data contained in currently selected row of an ABAP web dynpro table

  context_node->GET_STATIC_ATTRIBUTES().

-> take index number and increment to 1.

-> in ON_CELL_ACTION write code like

set lead selection  with index number....

regards,

venkat

Former Member
0 Kudos

HI THANKS A LOT I WILL TRY THIS.. AND COME BACK

Former Member
0 Kudos

Hi ,

Use below sample code..

  Data: it_scarr type STANDARD TABLE OF if_view=>element_----,

        wa like line of it.

  DATA: ld_index type i.

* Get data contained within ABAP web dynpro table

  context_node->get_static_attributes_table(

    importing

      table = it).

ld_index = ld_index + 1.

LOOP AT itINTO wa.

if ld_index = wa-index.

set_leat_selection ( exportinf wa ).

    CLEAR  wa.

  ENDLOOP.

Regards,

Venkat