Hi everyone,
I have created a custom Card page with a subform, and both are editable. The subform currently shows the standard New and Delete action buttons.
Here’s what I want to achieve:
Currently, I’ve added validation in the OnInsert(), OnModify(), and OnDelete() triggers based on the Card page’s Activate Boolean.
However, since the InsertAllowed and ModifyAllowed properties only accept true or false values (and not variables), I don’t think this can be controlled dynamically through AL code.
Is there a recommended approach or best practice to handle this kind of behavior?
Thanks in advance!
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,225
Sumit Singh 2,123
YUN ZHU 1,813 Super User 2025 Season 2