Skip to Content
author's profile photo Former Member
Former Member

how can i collapse a tree part

Hello,

For example I have to parend objects, and both parent objects have a child.

|-parent1

| |-child1.1

| |-child1.2

|-parent2

| |-child2.1

with which function i can collapse a treepart.

my target is follow.

I have this situation

1.

|-parent1

| |-child1.1

| |-child1.2

|-parent2

2. th user click on parent2

and the tree show follow,

|-parent1

|-parent2

| |-child2.1

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 03:57 PM

    The treeNodeType has two attributes, hasChildren and expanded. You need to change the expanded attribute of parent1 whenever parent2 is clicked.

    This tutorial might be helpful

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/constructing a recursive and loadable web dynpro tree.pdf

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2005 at 04:28 AM

    Hi,

    Apart from Lin's PDf file, why don't you go through the NWDS Help there is a <b>see Code Example for Creation of a Tree UI Element).</b>

    I hope this helps you a lot..

    Regards

    RK

    Add a comment
    10|10000 characters needed characters exceeded

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.