Skip to Content

sap design studio 1.6 tree component dynamic expansion/collapse

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 12, 2017 at 06:09 AM

    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

    Add comment
    10|10000 characters needed 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?

  • Apr 12, 2017 at 02:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2017 at 02:47 PM

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

    Add comment
    10|10000 characters needed characters exceeded