Skip to Content

Create Dynamic Buttons in Sap Design Studio

Hello Experts,

In our scenario we have 6 buttons that based on some condition, some of them should be visible.

For example, in some cases we need to see just first and third button but the position should not be fix.
Can anyone help me how can we create or handle dynamic scanerio in sap design studio?


menu.png (1.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 11, 2019 at 08:55 AM

    Hello Sepide,

    It is possible with text boxes as buttons and dynamically hiding and showing based on your logic. Text in each button and corresponding action can be adjusted with SetText() so in your example, Text box in position 2 can have text of position 3 and text boxes of position 3 and 4 can be hidden.


    Nikhil Joy

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Nikhil,

      Yes Exactly that is my requirement! your suggestion gave me an idea!

      I used "ComponentManager" and get all my Buttons and then based on my condition as you suggest I used SetText of each button dynamically.

      I do not find any other solution better than this.

      Thanks for your help


  • Posted on Feb 06, 2019 at 01:14 PM

    If you update to Lumira 2.x you could consider using dynamic components, blogged here by David Stocker:

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.