Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Button Control in a ActionPane

(0) ShareShare
ReportReport
Posted on by 85
Hi,

I have a list page form with a action pane and a button group. In the init of the form I dynamically add some buttons to he button group depending on the data that is present. All the buttons have the same technical name. So I can overload the clicked event in one method. But the labels of the buttons are all different according the user settings. 


The problem I’m having is that the buttons keep showing the technical name. I have tried everything but I cant change the name of the buttons in the button group. The strange thing is if I check the names in the code thus via "button.labelText()" it returns the right name. Even if I hard code the text of a button via "button.text('test')" it doesn’t show in the list page. Even after a redraw or reload command. If I try the same thing but without the action pane it works fine. The buttons are added to button group in the form and all have the right functional names/labels. But I need to implement this in a list page so this isn’t a option. Does anyone have a tip or suggestion for me?

*This post is locked for comments

  • Suggested answer
    Re: Button Control in a ActionPane

    Hi,

    Perhaps a bit late, but heres the answer for anyone stumbling on this thread looking for the it...

    This is a bug in AX.

    Dynamicly changed button labels of a buttun on an actionpane are not updated.

    (same code works fine if the button is not on an actionpane)

    I contacted Microsoft about this and they gave me a workaround (perhaps fixed in hotfix xxx?)

       button.text('new label');

       WinAPI::setWindowText(button.hWnd(),button.text());

    Cheers,

    Richard

  • RajeshMathew Profile Picture
    RajeshMathew 5 on at
    Re: Button Control in a ActionPane

    Hi axdev,

       I am hitting the exact same problem. Did you manage to solve the issue?

    Thanks,

    RM.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Button Control in a ActionPane

    When u are adding a label to the button add it as a label @sysxxxx and not text, to be sure that is in youre language.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans