Dear All,
Can you please let me know if i need to write any validation in form level as per customer requirement then where is best place to write validation. In Table or In Form ?
Please give me more shed on this.
Thanks!
Arpan Sen
*This post is locked for comments
Hi Arpen,
When u write code in form it always run client tier, consuming more resources can reduce the speed of form. But in table level you can make your code run on server tier.
For more information please refer
msdn.microsoft.com/.../aa879485.aspx
Regards,
Pradeep
Thanks Pradeep,
So, i think we need to write code in Table level mostly instead of form.
Point 1 is OK
Can you please elaborate me Point no 2. How it's impact performance issue?
Please give me more shed on this.
Thanks!
Arpan Sen
Hi Arpen,
We have 2 reasons for writing code in table level rather on the form.
1. For code reusability. If you write code in table you no need to write repeated codes in each form for validation.
2. Performance issues.
Thanks Martin,
If i write the same validation in AOT > Table > Methods instead of Form > Table > Methods. Is there any any difference?
Please give me more shed on this.
Thanks!
Arpan Sen
Use validate* method (such as validate() and validateField()) for validations. Prefer validation methods on tables to methods on the form itself. Which exact method you should use depends on your particular situation; there is no single best place for "any" validation.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156