cancel
Showing results for 
Search instead for 
Did you mean: 

POWL Events ('QUERY_SWITCH') and how to use them

former_member195355
Participant
0 Kudos

Hiya,

I have a web dynpro from where I display a custom POWL and it works fine...

What I'd now like to do is:

Whenever the user enters new search criteria in the POWL, I'd like the web dynpro to refresh some values at the same time.

The tricky bit is that usually we use IF_POWL_FEEDER~HANDLE_ACTION to pass events to the web dynpro, but obviously this needs user input via a button. Whereas we'd like the web dynpro to be refreshed when the query data is changed, ideally from IF_POWL_FEEDER~GET_OBJECTS.

I think I've found the following event 'QUERY_SWITCH', which I think sounds useful:

But I can't find any information/documentation on how to trigger this event from the POWL and how it works.

Would anyone be able to help?

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Robert,

If you have sorted out the solution, please share the same.I am stuck at the same point. I could not find any document on how to use Query_Switch event. My requirement is to clear the lead selection when my query is changed.

Thanks in advance!

-Poorva

rohit3611
Contributor
0 Kudos

Hi Poorva,

In the class CL_POWL_RUNTIME_SERVICES, use the GET_CURRENT_QUERY method on query switch and set the index to what ever you want SET_DEFAULT_TABLE_INDEX, set to -1 if you want to clear.

I think it will help you.

Best regards,

Rohit