Skip to Content
avatar image
Former Member

Tree UI Element: Disabling the expanding property in tree


I'm trying the example of Tree Structure and now trying to disable the expansion property of Tree when there is no file or folder under it. But its not happening? How to go about it ??

And also if i just want to show folders under tree structure & not the files under tree how to do it??

Thanks in advance


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 14, 2006 at 04:26 AM

    hi All,

    I'm unable to stop the expansion of tree node where there is no file or folder under it.

    Can someone help me with it?



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      I'm reposting the question as i wasn't able to figure out how to approach to any solution.

      I've BAPI which gives output in form of table..I'm accessing the BAPI using java.class. The table has many columns but thru the class file i'm selecting only two columns : CHILD and PARENT. and storing them in an array.

      The structure of the class:

      TREE[][]= { {parent1, Root},{parent2, Root},{child 1, parent 1} ,{child 2, parent 1},{child 3, child 1} }

      public string getChild<i>[0]{return TREE<i>[]}

      public string getParent<i>[1]{return TREE<i>[]}

      Now i want the this to be in tree structure without having any table or master column.

      The Structure I want to get is :



      |Parent 1


      |Child 1


      |Child 3


      |Child 2


      |Parent 2

      For this I've coded as described above.

      In the example " Integration of Tree Structure in a Web Dynpro Table"

      In the Action handlerevent :

      element.nodeChildCatalogEntries(element.nodeChildCatalogEntries, element.getText);

      ensures the tree gets expanded in table..

      My problem that there is no property called ChildrenLoaded in tree like Master column

      So my difficulty is how to implement the expanding of the root folder listing the leaves it has also the expanding to inner most children under each node. if Some one can guide me where i'm going wrong or modify my approach.

      Thanks n Regards