cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you all. My issue is resolved

Former Member
0 Kudos

I'm following this thread "" that you sent. I will update my result.

Thank you very much.

Ken

Former Member
0 Kudos

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

Former Member
0 Kudos

Check this thread -

[|]

Former Member
0 Kudos

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.