Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

on cell action in webdynpro

Former Member
0 Likes
654

Hello all,

i have a requirement in webdynpro where i have a table with three fields UID,First name and lastname.

there is a f4 help for UID if i select the uid its respective firdt name and last name should appera in the next two fields of the table.

Thanx,

Badri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

Hi,

Can you please be more clear in your requirement?

If you want to get the details of the first name and last name, you have to write the code in ONACTION method of the Push button UID.

If you want more details, Please revert back with exact requirement.

Regards

Lohitha

Hello all,

i have a requirement in webdynpro where i have a table with three fields UID,First name and lastname.

there is a f4 help for UID if i select the uid its respective firdt name and last name should appera in the next two fields of the table.

Thanx,

Badri.

4 REPLIES 4
Read only

Former Member
0 Likes
623

Hi,

Can you please be more clear in your requirement?

If you want to get the details of the first name and last name, you have to write the code in ONACTION method of the Push button UID.

If you want more details, Please revert back with exact requirement.

Regards

Lohitha

Read only

0 Likes
622

thanks for u r reply,

i will elaborate my requirement ......

i have a table with 3 fields( uid, firstname, lastname) the first field is in editable mode and has a serach help assigned to it.

the other two fields are read only.

now if i select a value in the fiest field (uid) its firstname and lastname should be displayed in the other two fields.

the problem is i have an event for the first field where i wrote the code but its not working.

How can we read the selected value on user action in the first field.

if u h

Read only

0 Likes
622

Hi Badri,

in your event, do something like this;

here in this example think your UID field as carrid.

DATA lo_nd_node_sflight TYPE REF TO if_wd_context_node.
      DATA lo_el_node_sflight TYPE REF TO if_wd_context_element.
      DATA ls_node_sflight TYPE wd_this->element_node_sflight.
      DATA lv_carrid LIKE ls_node_sflight-carrid.
      
      DATA t_sflight TYPE TABLE OF wd_this->element_node_sflight.
            
*     navigate from <CONTEXT> to <NODE_SFLIGHT> via lead selection
      lo_nd_node_sflight = wd_context->get_child_node( name = wd_this->wdctx_node_sflight ).

*     @TODO handle not set lead selection
      IF lo_nd_node_sflight IS INITIAL.
      ENDIF.

*     get element via lead selection
      lo_el_node_sflight = lo_nd_node_sflight->get_element(  ).

*     @TODO handle not set lead selection
      IF lo_el_node_sflight IS INITIAL.
      ENDIF.

*     get single attribute, i am reading the value of carrid that is in your case UID
      lo_el_node_sflight->get_attribute(
        EXPORTING
          name =  `CARRID`
        IMPORTING
          value = lv_carrid ).

*      here i am getting the data for that particular carrid, in your case get the data first name & last name for that particular UID
        SELECT * from sflight into t_sflight where carrid eq lv_carrid.
  
* now i am binding the new updated table
         lo_nd_node_sflight->bind_table( t_sflight ).

With luck,

Pritam.

Edited by: Pritam Ghosh on May 14, 2009 1:21 PM

Read only

Former Member
0 Likes
622

Hi,

I think it is not possible to do so in the same table.

You may take the field UID as paramater and get all the three fields in a table.

You can get the values displayed in another table or same table of different view.

Regards