cancel
Showing results for 
Search instead for 
Did you mean: 

Performance Issue : Calling of change event of combobox

former_member197888
Participant
0 Kudos

I have made an application and in that there is a combobox which has 2items year2014 and year2015 . Now according to the year selected data would be displayed . And on the change event of the combobox I have called a function . Just an alert is kept inside that function .

Now when i change the value of combobox the change event should be fired and immediately the alert should appear . But it takes nearly 60 seconds to display that alert which is there in that function . Can anyone guide me why is this happenenig ? And how to reduce time ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have a look at this example on how to implement the onChange function:

JS Bin - Collaborative JavaScript Debugging

If you are doing the same, the problem must be in any other part of your code.

former_member197888
Participant
0 Kudos

I have done it as shown below:-

My View code:-

My controller code:-

Can you guide me with this?

saivellanki
Active Contributor
0 Kudos

Manali,


Can you try using selectionChange event instead of change?

API: JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.ComboBox


Regards,

Sai Vellanki.

Former Member
0 Kudos

Sorry my jsbin link is leading to the wrong example.

Try to use the selectionChange event instead of "change":

<ComboBox id="system" selectedKey="2014" selectionChange="selectModel">

...

former_member197888
Participant
0 Kudos

Still facing the same issue.

former_member197888
Participant
0 Kudos

I tried but still facing the same issue.

Former Member
0 Kudos

issue is somewhere else its working fine for me

JS Bin - Collaborative JavaScript Debugging

saivellanki
Active Contributor
0 Kudos

Manali,

Can you share the code as well?

Regards,

Sai Vellanki.

former_member197888
Participant
0 Kudos

means code of full application or that page code?