cancel
Showing results for 
Search instead for 
Did you mean: 

sap design studio 1.6 tree component dynamic expansion/collapse

abdussamad_peera
Participant
0 Kudos

I am using a tree component in 1.6 SP3 to show my hierarchy. It works fine but the tree comes fully expanded. Is there a way to have it collapsed initially by using properties or dynamic script?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member276213
Active Participant
0 Kudos

Also u need to enable hierachy navigation enabled to true for your cross tab.

former_member276213
Active Participant
0 Kudos

hierachy-collapse.pngcrosstab-collapse.png

Hi..Refer the screen prints from my end its is working in start up script....U can try reset intial view of your data source (Right click data source----Reset intial view), once you organize your data source in the edit intial view Just reload the design studio from application and try writing the script in the start up.

Let me know if you still have further issues.

BR,

Lakshmikanth Adharapurapu

former_member276213
Active Participant
0 Kudos

Hi...You can try below collapse node function to ensure hierachy is not collapsed until you click + button of hierarchy manually, you need to put this script in start up.

DS_1.collapseNode("technical ID structure", "technical ID member structure")

BR,

Lakshmikanth Adharapurapu

abdussamad_peera
Participant
0 Kudos
Thanks! This works but for some reason it doesn't work in Startup script.

It's working in response to some other application actions like in a button click etc.

Any idea why it's not working on startup or background processing script?