Skip to Content
avatar image
Former Member

list of parameters in event object in sapui5

Hi UI5 champions,

Please forgive me if this is the wrong group or its a repeated question. While I was trying out some example programs like writing event handlers in controller, we use the event Object. If the event object is oEvent(say), we usually use method oEvent.getParameter("<param_name>").

Can you please help me to find out the list of possible parameters that can be used here. I tried hard to find out from the API, but couldn't find the information.

Please help me with information.

Thanks and Regards,

Harinadh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 13, 2016 at 01:25 PM

    It depends what control you are using. For example sap.m.SearchField has an event 'search' and its parameters are described here. You can access the following parameters:

    oEvent.getParameter("query");
    oEvent.getParameter("suggestionItem");
    oEvent.getParameter("refreshButtonPressed");
    oEvent.getParameter("clearButtonPressed");
    
    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2016 at 02:39 PM

    Hi Harinadh Bhupathi

    I think you are asking what are the properties for the event......?
    If yes then just place a break point after clicking on the list then in the console you can get the event parameters...

    In the below image you can observe triggering the break point after clicking on the list

    in this image u can observe i am using the console to find the properties of event...

    just type the event.(dot) in the console then u can check all the properties of that event.

    Hope you got it.....

    If this is not your doubt please revert back.

    Thanks,

    Deepak Raj.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Deepak,

      Thanks a lot. I was looking for parameters to be used when we call getParameter() method on event object.

  • avatar image
    Former Member
    Feb 16 at 04:38 PM

    Try to "https://sapui5.hana.ondemand.com/sdk/#/api".

    Check out events.

    Add comment
    10|10000 characters needed characters exceeded