Skip to Content
avatar image
Former Member

[TreeNodeType] Keeping expended items (children) when tree reload

Hi all,

My page with context is:

-TREE (node)

---TREENODE (node; data is load by Supply Function)

-


CHILDNODE (node; data is load by Supply Function)

-


name (attribute)

-


value (attribute)

I mapped this context into TREE as below:

-TREE (element type: TREE; dataSource : TREE)

---TNT_NODE (element type: TreeNodeType; dataSource: TREENODE; hasChildren: TRUE )

---TNT_CHILDNODE (element type: TreeNodeType; dataSource: CHILDNODE; hasChildren: FALSE)

It runs ok, but my request is:

Keep items (children) of TNT_NODE expand (open) when tree reload or Load and expand current node automatically when tree is reloaded.

Please give me your advice.

Regards,

Ken

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Nov 04, 2009 at 04:45 AM

    Hi,

    I am not sure wether you have binded the prperties like 'Is child', 'Expanded', "Parent Key ', 'Key', or not . If you have binded these values then when the child elements are loaded then when u are loading the child elements then you can append the value as expanded 'abap_true' or as ' X' that means when u try to upload the child elements then the the child elements will be expanded defaultly.

    Hope this may help you.

    Have A Good Day.

    Regards,

    Sana.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 04, 2009 at 05:02 AM

    Thank you for your reply.

    I set "Expanded" property for TNT_NODE (TreeNodeType) which parent of TNT_CHILDNODE, but it expanded all nodes, my desire is it expands the current node (focus node) only.

    I don't see "Parent Key" property as you mentioned on properties panel of layout tab.

    Regards,

    Ken

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 04, 2009 at 08:56 AM

    I'm following this thread "wd-tree-expand-leadselection" that you sent. I will update my result.

    Thank you very much.

    Ken

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 04, 2009 at 10:39 AM

    Thank you all. My issue is resolved

    Add comment
    10|10000 characters needed characters exceeded