cancel
Showing results for 
Search instead for 
Did you mean: 

HCM Processes & Forms - Get event in search help when press 'OK' button

former_member189690
Participant
0 Kudos

Hi Gurus,

I have a Position form field to select certain values. I'm setting search help values during runtime in a custom generic backend service in INITIALIZE method. Result values are being showed properly on search help popup but when I press 'OK' button of the search help window I'm not be able to catch event associated to it. In this field I have set standard USER_EVENT_INITIALIZE event on form. The weird thing is if I press enter on the field (not in search help window) the event is being triggered well, but I need to catch the event also when user press button 'OK'.

I send to you some screenshots for more clarification.

Image 1: this is the Position field with a search help defined in backend service:

Image 2: if I press search help button values are showed properly in a popup window:

At this point I need to be able to 'catch' event when user press OK button to get certain default form fields.

Image 3: value is transferred properly to the form field, and if I press 'Enter' event initialize is being triggered.

Image 4: See event assigned to the field in form configuration:

Probably I'm doing something wrong.

Any idea or comment would be helpful.

KR

Accepted Solutions (1)

Accepted Solutions (1)

sahirn
Active Contributor
0 Kudos

If understood you requirement correctly.

The form user would search a position and there after once he presses enter key some other fields need to be populated based on selected position.

If this is the case - define a new user event and associate it to Enter event of position field.

There after in your generic service based on the operation, default the fields you need to.

Hope this helps.

Regards,

Sahir.

former_member189690
Participant
0 Kudos

'Enter' action is working fine, I want the same behaviour than 'Enter' whenever user press 'OK' button of search help window, now does not trigger any event. I have some other fields wich OK event is being triggered, the only difference is this field doesn't have any search help assigned in runtime but defined statically within a data element.

KR

sahirn
Active Contributor
0 Kudos

I see 2 options here:

1. Change input field property of position field as drop down.

2. If 1. does not work have a button instead which will trigger a search help that will WDA search help(or you could even have WDA search help associated with position field).

Hope this helps.

Regards,

Sahir.

former_member189690
Participant
0 Kudos

Hi Sahir!

Thanks a lot, setting field as drop down list fits my requirements and event is being launched perfectly!

I don't understand why is not the same behaviour whenever we are selecting value from a search help.

Perhaps any SAP guru has a proper explanation for that.

KR

Answers (0)