Trees : Ability to force loading of all nodes

Description

https://groups.google.com/d/msg/idempiere/uApVVrb9k5E/dQyh8AENAgAJ

ZK8 doesn't load all tree nodes immediately and you can experience some empty tree nodes (no label) because zk8 introduce progressive loading of tree nodes (not sure about the correct term).
The idea is to add a new checkbox in order administrators can choose between 'old' behaviour (force loading when tree is shown) and zk8 default behaviour.

Regards,

Nicolas

Environment

None

Activity

Show:
Nicolas Micoud
April 3, 2017, 3:37 PM

Hi , I've created new column on AD_Tree : IsLoadAllNodesImmediately
If checked, all nodes are loaded when tree is displayed. Otherwise, we use the standard behaviour.

I've put the new methods (credits go to ) in TreeUtils and set them as statics.

Regards,

Nicolas

Carlos Ruiz
May 3, 2017, 4:22 PM

Thanks - I made some peer review in second commit - please check and test.

By default I left the new flag set to true.

Nicolas Micoud
May 4, 2017, 8:54 AM

Hi ; i updated my local development instance and do some tests.
Everything works as expected !
Thanks,

Nicolas

Assignee

Nicolas Micoud

Reporter

Nicolas Micoud

Labels

Tested By

None

Priority

Major
Configure