You need to sign in to do that
Don't have an account?
XactAndy
Tree based summary
I would like our users to be able some objects and relationships in an
expandable tree based form. Can anyone suggest the best way to do this, e.g.
S-Control, VisualForce, Ajax?
Thanks,
Andy
expandable tree based form. Can anyone suggest the best way to do this, e.g.
S-Control, VisualForce, Ajax?
Thanks,
Andy
In my case, I wanted to populated a tree of folders from Document table data, and the documents in them.
There is a binable file of type XML at the top of my file:
Code:
The function getFolderList below can be called upon the event you choose.
Code:
.... Good Luck!
Erik
Here is my code:
Cheers!
mschmidt
I know this was posted awhile back, but for those of you (like myself) that are using visualforce and apex and would like to create a tree structure using custom objects for the data AND do not wish to use flex, here is the solution I reached thanks to the great help provided by Ron Hess, whom I'm sure you will see helping others throughout these forums.
Now that that run on sentence is out of the way, on to the solutions:
For my data structure, I created 4 custom objects related as follows...
Application(Applications)
Application Name
ApplicationID (auto number)
Grouping(Groupings)
Lookup Field to Application
Grouping Name
GroupingID (auto number)
Category (Categories)
Lookup Field to Grouping
Category Name
CategoryID (auto number)
Topic(Topics)
Lookup Field to Category
Category Name
TopicID (auto number)
Directions (longtext area(32,000))
In visualforce I created a custom controller to handle these objects. Ron was able to show me the right way to write this controller and I was very pleased with the simplicity of it. The main thing to look at is the way the custom objects are handled in relation to each other, building the container object's list, grouping.
Then in the visualforce page, the apex code to display this data in a tree structure goes as follows:
The end result is a very pleasing interface for our help system with a left nav tree menu that is comparable to the salesforce help system's tree structure. Using custom objects allows anyone in our company to add topics to our help system through salesforce with ease.