Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Multiselect Apex Tree Region

551931Nov 28 2016 — edited Mar 16 2017

Hi,

I am using Apex5. I want to show a tree/hierarchical structure where user can multi-select values and submit it to save to Database.

How can I achieve that? I don't see any setting for multi-selection.

I tried the following, but it doesn't work -

$("#PRDS").treeView("option","multiple", "true");

Also, on selection of a node i wanted to do some action, Added following to page javascript but no luck

var l$Tree = $("#PRDS div.tree");

$.tree.reference(l$Tree).settings.callback.onselect = function(NODE, TREE_OBJ){

}

It gives error in log: Uncaught Error: cannot call methods on treeView prior to initialization; attempted to call method 'option'(…)

Even after adding this condition:

if (typeof l$Tree != 'undefined' && l$Tree) {

$("#PRDS").treeView("option","multiple", "true");

PRDS is static ID of Region

I wrote above in On Page Load JS.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2017
Added on Nov 28 2016
14 comments
2,209 views