[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
onRowExecute Byte Limit  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

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
[Thumb - onRowExecute Error.png]
 Filename onRowExecute Error.png [Disk] Download
 Description The snapshot.
 Filesize 87 Kbytes
 Downloaded:  232 time(s)

CaptainCasa

Power User
[Avatar]

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
vadingding

Power User
[Avatar]

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?
rheinrichs

Power User
[Avatar]

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
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi,

Thanks for the reply. This problem is solved. Used Reflection API.
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team