Set Selected Index : 47 out of bounds

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Set Selected Index : 47 out of bounds

Postby Bernd.N » Wed Mar 02, 2016 2:21 pm

Does someone know the root cause for this message?
It appears every once in a while, average is about once a day. The 47 can be another value.
I could not find threads regarding Servoy, but when searching on Google, setSelectedIndex will show up and also out of bounds, so maybe it is a Swing or Java issue?

When this showed up, I was just scrolling a large table with my page down key on the keyboard.
After pressing OK, you can work on, so it is not fatal.
Attachments
setSelectedIndex.png
setSelectedIndex.png (17.24 KiB) Viewed 323 times
Bernd Korthaus
projectEIM.com
LinkedIn
Servoy 7.4.8 SC postgreSQL 9.4.9 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 378
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Set Selected Index : 47 out of bounds

Postby ROCLASI » Wed Mar 02, 2016 5:20 pm

Hi Bernd,

Do you have any code linked or on that form that holds that function setSelectedIndex ?
It's a function of controller or foundset.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5159
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Set Selected Index : 47 out of bounds

Postby Bernd.N » Wed Mar 02, 2016 8:38 pm

Hi Robert,
we use the function setSelectedIndex about 30 times in our solution, but when looking at the code, we can not see that one of those would be triggered by just scrolling through that table.
So my assumption is it stems not directly from our code but could be triggered in an indirect way.

When thinking about which code could be fired while just scrolling through such a list, my only idea is: a calculation.
We have several non-stored calculations associated with that table, like this one:

Code: Select all
function clc_warning_triangle()
{
   if ((Math.abs(p_total_order_value - p_total_order_value_pe) > 200)  ||  (Math.abs(p_remaining_not_planned) > 500)  ||  p_remaining < -10) {
      
      return '<html> <img src="media:///exclamation-circle_f08080_16.png"> </html>';
   }
   else {

      return null;
   }
}
Bernd Korthaus
projectEIM.com
LinkedIn
Servoy 7.4.8 SC postgreSQL 9.4.9 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 378
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Set Selected Index : 47 out of bounds

Postby LXS » Wed Feb 15, 2017 12:04 pm

Hi Bernd,

could you solve the issue with setSelectedIndex out of bounds or do you know where it comes from?
Some customers report about these error messages sporadically, too.

Thanks,
Alex
Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de
LXS
 
Posts: 93
Joined: Thu Mar 01, 2007 12:00 am

Re: Set Selected Index : 47 out of bounds

Postby Bernd.N » Wed Feb 15, 2017 12:51 pm

Hi Alex,
no solution so far. I assume it's root cause is a calculated field from one of the columns.
It appears only on our largest and most complex table form.
So if I would have time to tackle this now, I would try to reduce the calculations or replace them by stored calculated fields, so that the calculations will not always fire as soon as the table form will show.
Bernd Korthaus
projectEIM.com
LinkedIn
Servoy 7.4.8 SC postgreSQL 9.4.9 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 378
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 4 guests

cron