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!

BUG: addNode function in treeView and in Adapter throws error

John like many othersOct 23 2020 — edited Oct 23 2020

Hello
After days of hair pulling and endless trials I want to commit a bug using the treeView or treeAdapater function addNode:
var tree$ = $( "#HIERARCHYTREE_tree" );
var adapter = tree$.treeView( "getNodeAdapter" );
var newNode = { "id": "12345", "label": "Some new node" };
var myNode = $.apex.treeView.makeDefaultNodeAdapter( newNode );
adapter.addNode($('.a-TreeView-content'), 0, myNode);
This throws this error:
Uncaught TypeError: a.children.push is not a function widget.treeView.min.js?v=19.2.0.00.18:2
Weird, that such an obvious bug was not yet detected.
-> Bug found in Apex 19.2

Comments
Post Details
Added on Oct 23 2020
2 comments
724 views