Skip to Content
0

sap design studio 1.6 tree component dynamic expansion/collapse

Apr 11, 2017 at 11:35 PM

418

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Lakshmikanth Adharapurapu Apr 12, 2017 at 06:09 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
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?

0
Lakshmikanth Adharapurapu Apr 12, 2017 at 02:45 PM
0

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


Share
10 |10000 characters needed characters left characters exceeded
Lakshmikanth Adharapurapu Apr 12, 2017 at 02:47 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded