[zTree] [zTree] Is it possible to force select a node child with javascript on tree load?

Forge Component
(20)
Published on 2019-10-03 by Eduardo Luís
20 votes
Published on 2019-10-03 by Eduardo Luís
  • Version of Service Studio: 11.8.8
  • For Web Application

I wonder if it is possible to force select a node or a child node using a javascript zTree function (with callbacks or other method) ?

I want my tree to be selected with a value saved in an entity and the node to be expanded too.

Thanks.

Hi,


you can use the checkbox tree (see screenshot) and use UpdateNodeCheck action to check and uncheck node.

https://emluis.outsystemscloud.com/zTreeExample/


Hope this helps if you are trying something different please explain more......