Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

dynamic action button

Posted on by 25

Hi experts, how to have button name based on value in selected table(then supposedly the number of button will based on the value existed). For example when I click update stock button, then it will show another button based on location, the location supposedly from table (like the picture below). the one that i done is i manually set the button name and so on, so it will not dynamically change if the data in the table changed

pastedimage1686543876968v1.png

  • jack07 Profile Picture
    jack07 25 on at
    RE: dynamic action button

    let say i dont know how many are there the location values that represent the button, then how the code can be to write in the button area(as the picture)?

    and how to dynamically change the button name based on the value from the location table?

  • Suggested answer
    sVerme Profile Picture
    sVerme 120 on at
    RE: dynamic action button

    You could create booleans to control which button to show/hide. 

    using triggers to set these booleans to true or false, depending what button you want to show. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans