New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AL] 'OnNextRecord' is not a valid trigger #3825
Comments
Hi @malue19, can you provide us with the following information so that we can start investigating your issue? Which version of the compiler are you using? The OnNextRecord Trigger can only be used on pages and request pages. |
Hi @qutreson, The error message I get is: The object I would like to extend is not a standard object of NAV, it is a page of my own extension. The version of the AL Language Package I am using is 0.16.19969. |
It is currently not possible to use this trigger on a page extension. It can currently only be used from a page or a request page object. We will use this issue to track this issue if we consider making this trigger available from page extensions in the future. In the meanwhile, what you can do, is create an event in the base page and raise this event in the OnNextRecord trigger on the page. Then, you can subscribe to it from your extension and re-use it there. |
As a clarification: it is not possible to use the |
Any progress on this? We need this in our extension in v14. |
@epernst @bssi-danielf as this is a request for a new feature, please go ahead and post this to our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release. |
Hey guys, I am trying to create a trigger in my extension, but VSC shows me, that my trigger is not a valid trigger...
Does anybody know, how to solve this?
The text was updated successfully, but these errors were encountered: