cancel
Showing results for 
Search instead for 
Did you mean: 

WORKING WITH CALL METHOD WDEVENT->GET_NAME HOW TO PASS ONENTER ID OF CELL EDITOR

Former Member
0 Kudos

Hi every one,

am trying to get value of second field based on the first field.............

here am able to get value for 1st record and am not getting value from 2nd field

here its WD COMP to save data to ztable which is editable screen short is below

here used onenter event for cell editor and dynamically filling DIP_VOL................

my functionality working for 1st record only.... actually controlling not passing to second record

here how to use  working with CALL METHOD WDEVENT->GET_NAME in webdynpro

is ot works plzzz help meeeeeeeee sample code

how to pass parameter id

Accepted Solutions (0)

Answers (1)

Answers (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Thirup,

wdevent gives the context element of the UI instance where the event was triggered, so get the context and based on that context get the attribute and process you logic and bind the secont attribute to the context element.

please check with the following code

data l_element type ref to IF_WD_CONTEXT_ELEMENT.

l_element = = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).

l_element->get_attribute( exporting name = 'ATTR1_1' importing value = lv_attr1 ).


//process


l_element->set_attribute( EXPORTING value =  '1234' name  = 'ATTR1_2' ).


Regards,

Harsha