Announcements
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,386 Super User 2026 Season 1
YUN ZHU 1,774 Super User 2026 Season 1
AndrewThomas81 1,515