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.....
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
Hi Pankaj,
We are researching this and will let you know what we find.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156