Author |
Message |
31/08/2017 10:46:33
|
vadingding
Power User
Joined: 14/07/2017 13:26:37
Messages: 145
Offline
|
Hi Captain,
I have over 2000+ tree node on my outlook bar, and I got an error (see attached snapshot).
Is there a way to add the limit? Or can you give me a hint to avoid this?
Thanks
|
Filename |
onRowExecute Error.png |
Download
|
Description |
The snapshot. |
Filesize |
87 Kbytes
|
Downloaded: |
232 time(s) |
|
|
|
31/08/2017 10:54:29
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...this question is a Java question, so no relation to CaptainCasa! ;-)
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
31/08/2017 10:59:33
|
vadingding
Power User
Joined: 14/07/2017 13:26:37
Messages: 145
Offline
|
Alright, is there any other CaptainCasa way to avoid that even if I have a large amount of nodes in my tree node class?
|
|
|
01/09/2017 08:14:57
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
Hi!
Maybe you want to put the ID's in a Map<String, Methode> (HashMap) and change the call mechanism?
If the list changed, you could also think about to put in a "Properties" file.
This is loadable by this:
/**
* Loads a properties file from Classloader (classpath)
*/
private void loadProperties() {
InputStream is = null;
try {
// check CLASSPATH
is = getClass().getResourceAsStream(DEFAULT_PROPERTYFILE);
m_props.load(is);
} catch (Exception e) {
s_log.warn("load application properties failed!", e);
} finally {
IOUtils.closeQuietly(is);
}
}
Kind regards
Roland
|
|
|
01/09/2017 15:31:18
|
vadingding
Power User
Joined: 14/07/2017 13:26:37
Messages: 145
Offline
|
Hi,
Thanks for the reply. This problem is solved. Used Reflection API.
|
|
|
|