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)

Hide or disable the ok button from a dialog

(0) ShareShare
ReportReport
Posted on by 922

Hi ,

In the Table LedgerJournalTrans i have this code : 

if (this.amount() != -totalSettleAmountForSpecReference)
{
if (Box::okCancel(strFmt("@SYS59380"), DialogButton::Cancel,'') == DialogButton::Cancel)
{
ret = false;
}
}

how can i hide or disable ok button

*This post is locked for comments

  • Bilal Issa Profile Picture
    4,370 on at

    Yes, you can create a form and change its design to be dialog and then show it , but if you want to force cancel all the time then return false without showing the dialog and show a warning or info with a message .

  • ALAhmed Profile Picture
    922 on at

    Thanks for the reply , i want to force cancel how can i do that 

    what do you thing for simthing like that :

    if (this.amount() != -totalSettleAmountForSpecReference)
    {
    Box::warning("@SYS59380") ;
    ret = false; 

    }

  • Bilal Issa Profile Picture
    4,370 on at

    No worries, just

    warning("@SYS59380") ;

    ret = false;

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans