cancel
Showing results for 
Search instead for 
Did you mean: 

open one row in webdynpro table

Former Member
0 Kudos

My application has one button to add one row in a table, the table initial is in read only when user click the button it will open only one row then user will enter data.

I try to user the below code but not working.

DATA int_sndr_prop type TABLE OF WDR_CONTEXT_PROP_FOR_NODE ."WDR_CONTEXT_PROPERTIES_tab.

DATA wa_sndr_prop  type WDR_CONTEXT_PROP_FOR_NODE."WDR_CONTEXT_PROPERTIES.

LOOP AT wd_comp_controller->int_sndr INTO wa_sndr .

  IF sy-tabix eq wf_index.

    wa_sndr_prop-READ_ONLY      = space.

    wa_sndr_prop-ELEMENT_INDEX = wf_index.

  else.

    wa_sndr_prop-READ_ONLY      = 'X'.

    wa_sndr_prop-ELEMENT_INDEX = sy-tabix.

  ENDIF.

wa_sndr_prop-ATTRIBUTE_NAME = 'SNDR_READ_ONLY'.

APPEND wa_sndr_prop to int_sndr_prop.

    call METHOD wd_comp_controller->z_sender_node_att->SET_ATTRIBUTE_PROPS_FOR_NODE(

          EXPORTING

                    PROPERTIES = int_sndr_prop

                    KEEP_OTHERS = ABAP_TRUE ).

ENDLOOP.

    call METHOD wd_this->z_sndr_read_only_att->SET_ATTRIBUTE_PROPS_FOR_ELEM(

          EXPORTING

                    PROPERTIES = int_sndr_prop

                    KEEP_OTHERS = ABAP_FALSE

).

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

ANY SOLUTION OF THIS ISSUE

former_member282968
Contributor
0 Kudos

Hi,

1.In the table UI element ON LEADSELECT property create an event handler method.

2.On lead selection of the table this even handler method gets called.

2.Get the structure you want to show in the next view.And if this structure is binded to the fields in next view , it will get displayed.

3.Fire the plug for the view you want to call.

With regards,

Former Member
0 Kudos

thank you,

so far, i could one whole column if I click on the add row button, but want to open specific row of table not whole column

Former Member
0 Kudos
Former Member
0 Kudos

how I can move it or change the place.

ThomasZloch
Active Contributor
0 Kudos

Done. Only moderators/admins can move content. In future cases, simply use the "report abuse" button to ask for the move (don't take "abuse" too seriously in this case...)


Thomas