cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

setSelectedItem method keeps running forever

sidnooradarsh
Contributor
0 Likes
189

Hello,

We are on MII 12.1.7 build 47. We upgraded from MII 11.5 to MII 12.1.

Whenever the iBrowser method setSelectedItem is invoked the method keeps running forever locking up entire MII portal and I have to go into task manager and kill the process.

Verified the NW logs but did not find any errors.

This never happened before with MII 11.5 it is happening only with MII 12.1

Has something changed in 12.1 like the syntax or the way of using this method or is it web browser dependent?

Any suggestions will be helpful!!

Regards,

Adarsh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Setting a selected Item programmatically didn't used to trigger the selection event. I have found that it now does sometimes. I think this is dependant on browser and/or Java version. This can cause infinite loops depending on your event logic.

Try something like the following:

 
document.MyGrid.setSelectionEventEnabled(false); 
document.MyGrid.getGridObject().setSelectedRow(i); 
document.MyGrid.getGridObject().setFirstVisibleRow(i); 
document.MyGrid.setSelectionEventEnabled(true); 

Regards,

Christian

Edited by: Christian Libich on Nov 10, 2010 6:33 PM

sidnooradarsh
Contributor
0 Likes

Thanks Christian for your response.

But I am having issues with an iBrowser not iGrid

Any suggestions

Regards,

Adarsh

Former Member
0 Likes

setSelectionEventEnabled(bool) is available in the iBrowser API

Answers (0)