View Full Version : How to dynamically build tree in Navigation panel
jwrothwell
03-15-2010, 07:59 PM
A newbie question... (and I hope I didn't miss the obvious somewhere)
I've studied the examples of building trees, and I've seen in the front-end simpletree.html that it targets the Content container (a tab) via the renders to divA and divB, but how does one target the Navigation container? I want to dynamically build the navigation at start-up time, based on the user. Specifically, I want to build a tree of spool files in the Navigation pane that would be application call options that when clicked would result in the spool file being displayed in a tab. Doable, right?
Thanks.
sean.lanktree
03-15-2010, 09:42 PM
Welcome to the forum jwrothwell...
The navigation tree is already built dynamically based on the user. Each user is assigned a navigation tree as well as authority to various options and/or groups. I would recommend not attempting to change the navigation tree to a spool file based system. If you do, then you would only be able to launch spool files from the navigation tree, thus really limiting the capabilities of the portal. Where would the user launch other options?
I would recommend creating a new option (program) to show/view the spool files. In other words, a user would sign on and then see "View Spool Files" as one of their available options in the navigation tree. Once clicked, this program launches in a new tab. The new tab shows a list of spool files that when clicked can open a new tab of the spool file in PDF format.
In fact, we (CNX) already have something similar to this in the works. All Valence users with an active support pack will have this available (among other things) for download. Not giving a hard sell, just thought it would be worth mentioning since your question was relevant to it.
jwrothwell
03-16-2010, 12:43 PM
Thanks for your quick reply, Sean. I appreciate your suggestion, and Richard has given me some as well. You guys and your support are great. Keep up the good work!
richard.milone
03-16-2010, 12:49 PM
Just thought I'd follow up with this and post some additional suggestions. If you really want to have spool files in the navigation area, you could experiment with adding spool file nodes to the tree when it's constructed. The tree nodes are constructed by RPG program VVVPORT, action getNavTree.
Alternatively you could segment the west navigation panel into an upper and a lower region and have a spool file grid or tree in the lower region. This region could then be filled with your own program and make migrating your enhancements to the portal easier with new releases.
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.