Notifications
Announcements
No record found.
Hi all,
if i delete header line also I want to delete.
but, in my custom form if i delete header does not delete line.
so that what should i write in validate write method ? give me example for that?
Thanks
Correction : validate delete
If you wanted to write your code (which you shouldn't), you would do it in delete().
validate* methods are just for validation (and the method used for validation before deletion is validateDelete()).
The right approach is defining a relation on the line table and setting On Delete property to Cascade.
Thanks for replay sir,
i don't want delete action i want to via x++.
Hi Riyas,
delete actions in table relations are the correct way to handle this. I strongly recommend you to use them - this also helps you and future developers understand and work with your solution, since it uses the common and understandable design principles.
Technically you can of course also write code in the delete() method of the parent table, and delete child lines.
You should never put this kind of logic in validate* methods, they are intended for validation only!
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 559 Most Valuable Professional
André Arnaud de Cal... 464 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader