web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

  • Community Member Profile Picture
    on at

    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.

  • RajeshMathew Profile Picture
    5 on at

    Hi axdev,

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

    Thanks,

    RM.

  • Suggested answer
    Richard Scholten Profile Picture
    5 on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans