cancel
Showing results for 
Search instead for 
Did you mean: 

Setter Method -- Identify the Event(Enter Key)

Former Member
0 Kudos

Dear All

   I have couple of Setter Methods generated in a table view Context node attributes and coded with the custom SET Logic .

   And I need to allow  current->set_property  to be executed only when the ENTER key is pressed and not in other case(say while clicking the Custom Button).

    So the Question is how to identify the Event in the Setter method of a Table View Content Node ?

    Please advise.

Cheers

RJ

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member210642
Participant
0 Kudos

HI,

IN DO_FINISH_INPUT will trigger event for Enter.Please note that event and declare a variable use it in Setter Method.

Try This it works.

Former Member
0 Kudos

Any one to help on this?

Please....

RJ

former_member214667
Contributor
0 Kudos

Hi RJ,

The point to be understood is that SETTER method is called in the next roundtrip after there is a change on UI. So you need to somehow identify the two cases and prevent the actual setting of attribute to the BOL in the SETTER method itself.

Regards,

Shiromani

Former Member
0 Kudos

hi,

I think you need to first get the event name and based on that you need to set the value. you can get the event name as below.

DATA: event_data    TYPE REF TO if_htmlb_data.

event_data = cl_htmlb_manager=>get_event_ex( request ).

CASE event_data->event_server_name.

when 'enter'

*Set value.

Thanks.