Control Add-in Action Interference with Modal Cancel Button in Business Central
I created a control add-in and added it to a page in Business Central. This page is then added to another page using Page.RunModal(), which works fine to produce a modal of the control add-in page.
I am trying to run an action on the control add-in. If it succeeds, it should open the parent page; if it fails, it should throw an error. However, the close button's action seems to interfere with the control add-in's action. Whenever I click cancel, the same function that the control add-in runs is executed by the Cancel button by default.
Is there a way to differentiate the actions of the control add-in and the Cancel button to prevent them from running the same function?
π»π»π»This repository is only dedicated to bug reports for AL compiler and developer tools. Runtime issues should follow the support process indicated below. π»π»π»
How to get help
- Review our resources for help and support
- If you are a Microsoft Partner, follow the documentation here to escalate a customer issue
- If you are a Business Central customer, read about reporting a problem
- Open a bug in Collaborate
- Contact your Service Account Manager (SAM) in your local subsidiary to understand what is included in your contract as of support incident and PAH (Partner Advisory Hours). Your SAM might also direct you "step by step" how to open a support request or how to get credentials, if this is the first time for you or your company.
General Questions
You can use Viva Engage for asking questions and providing feedback around the runtime behavior of the product.