Skip to Content

Alternatives for htmlb:tree

The docu of the htmlb:tree says that

<i>The tree element is not intended for displaying tree structures with thousands of nodes and end nodes. In general, a tree should never contain more than 30 to 50 entries. Ensure that the size of your HTML page grows in proportion to the number of entries.</i>

Even with Durairaj Athavan Raja's great solution of dynamically reading the children of a node only if it's being exanded (/people/durairaj.athavanraja/blog/2004/11/21/bsphow-to-build-performance-efficient-dynamic-htmlbtree), I am not sure if I can use htmlb:tree because my tree will have 60 top level nodes already.

Do you know of any good alternatives to the htmlb:tree? What do you guys do if you have trees with many nodes?

Best regards,

Daniel

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Oct 11, 2005 at 07:48 AM

    I am using a tree with about 2500 nodes and and around 5000 final children (leaves) and we dont face any problem using the approach i have explained in my weblog.

    i guess the best approach would be to just do it and check whether you are having problem.

    <i>Do you know of any good alternatives to the htmlb:tree?</i>

    there are other javascrip/dhtml trees but you will still face the same kind of issues.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2005 at 02:46 PM

    I too have applications with trees much larger than the recommended maximum. I agree that it is a matter of testing.

    On alternative is to create a pseudo Tree/Table with a <htmlb:tableView> and Table View Iterator. In recent support package levels you can create a heirarchy column (see SBSPEXT_TABLE). This is great if you have a large number of nodes, but not a deep level of nesting. You get the paging capabilities of the Table View. This is also nice if you have structured columns (like the column tree in the SAPGui) or you want to easily render a lot of rich content on each node.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 07:46 AM

    Is there an example for a BSP where the first column is a treeelement that when expanded would create another node, a textbox, a pushbutton and a display field? In oter words, the dynamic tree elemnt is the first column in a table that be a recursive node

    Add a comment
    10|10000 characters needed characters exceeded

    • You have to have a fairly recent support package level, but yes there is an example in SBSPEXT_TABLE. The example you want is the Advanced PHTMLB sample- Tab MyTitle3.

      The expand and collapse of the nodes is not handled automatically however. You have to control this processing through your iterator. So it isn't quite as easy to program as the <htmlb:tree> itself.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.