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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How I can Enable/Disable post button depending if custom checkbox checked or not

(0) ShareShare
ReportReport
Posted on by 40

HI All 

How I can Enable/Disable post button depending if custom checkbox checked or not

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Set AutoDeclaration = Yes in the properties for the button. Then in the modified() method of your checkbox, you could refer the post button's control by name, after the super() call.

    YouPostButton.enabled(this.checked());

  • Vilmos Kintera Profile Picture
    46,149 on at

    Please make sure that if the answer was helpful, you do not use the Like button, but select the helpful posts as Verified on the right hand side of each post, to close the topic and help others.

  • Ahmed Mansour Profile Picture
    40 on at

    HI All

    How I can Enable/Disable edit button depending if  selected order SalesStatus=Backorder or not in page SalesTableListPage

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You put the conditions for your requirements within the braces of an IF statement, or use an in-line condition like I did above..

  • Ahmed Mansour Profile Picture
    40 on at

    Thanks Crispin

    the first line Work efficiently  but The second line and third does not worke. Did you at any idea why.

     // ahmed mansour

           this.listPage().actionPaneControlEnabled(formControlStr(salesTableListPage, CancelOrderButton), false);

           this.listPage().actionPaneControlEnabled(formControlStr(salesTableListPage, EditButton), false);

           this.listPage().actionPaneControlEnabled(formControlStr(salesTableListPage, delete), false);

  • Ahmed Mansour Profile Picture
    40 on at

    Dear Crispin

    I am very grateful to help Me,  it worked successfully ,But still i need close the shortcuts for delete or edit to close All gaps.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans