Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Suggested answer

How to show an error dialog and not to close the transaction in ax2012 R3 Retail POS?

Posted on by 392

Hi All,

Trust, all are doing well...

We have a requirement to integrate the AX2012 Retail POS with D365 CRM. Basically, we have created a custom payment method and whatever the amount pay by that tender, we need to send the whole transaction details to crm to reduced the amount as well as to get the points earned on that transaction. In this case, we are writing the code of the preendtransactiontrigger method. We are trying to show a custom message and restrict the transaction as well trying to keep that transaction form until void that transaction or change the payment method.

Can you please suggest us how can we show a error dialog as well to stick in transaction form until it got void or to close the transaction by using another payment method?

Thanks in Advance.....

  • Suggested answer
    Ramshenkar Profile Picture
    Ramshenkar on at
    RE: How to show an error dialog and not to close the transaction in ax2012 R3 Retail POS?

    You can show the new form / message as dialog and the processing will wait till you close the dialog. To show dialog use following method -  POSFormsManager.ShowPOSMessageDialog()

    Just note, you can also use standard .net model dialog methods to stop processing but the layout, margin and positioning you have to manage in code.   Quick example to show model dialog in C#.net(below DialogControl  is just a windows form)

    DialogControl d = new DialogControl();
    d.DialogResult = DialogResult.OK;
    d.ShowDialog();

    Hope this will help you!

    Regards, 

    Ram

  • ToddB Profile Picture
    ToddB on at
    RE: How to show an error dialog and not to close the transaction in ax2012 R3 Retail POS?

    Hi Pankaj,

    We are researching this and will let you know what we find.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans