Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JS: Creating "native" objects such as treeList

Avatar

Level 4
Level 4

I'm trying to create a treeList and populate it with nodes, however it seems the constructors of these native objects (list, node, treeList, tree, nodeList) are obscured. The only "solution" (really ugly piece of coding) I've found so far is this:

var myTreeList = xfa.resolveNodes("a node that does not exist"); // "fool" the framework to give me an empty treeList.

myTreeList.append(/* start populating */);

I simply refuse to write that. Any ideas?

0 Replies