Skip to Content
avatar image
Former Member

UI5 Opa5-Trigger combobox event

Hello,

I am new to UI5 and I am currently creating some Opa5 test for an application and i am trying to simulate the selection of a combobox. I have managed to change the item selected item of the combobox to the desired one, however this process does not trigger the selectionChange event, event which is required to be triggered as some of my other controls are filled values based on my selection.  I have tried a bunch of way to fire my event but nothing seemed to work. I saw the fireSelectionChange() method for the combobox control in the documentation, but i don't think i am calling it the right way as not much seems to happen.

Any help would be much appreciated.

Thanks !

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 05, 2015 at 09:25 PM

    You should be able to use trigger to perform the selection.

    var oMyFirstItem = oMyControl.getItems()[0];

    oMyFirstItem.$().trigger("tap");

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded