I have a user who wants some very specific fields in her purchase order "edit in grid" form. I know how to create display methods and add them to the form, but in that case everybody gets them. She'd like the ability to "personalize them in". Is there a way to do that?
*This post is locked for comments
As I said above you may add it run-time, similar to what Sukrut has linked, or you may refer to AOT\Forms\tutorial_form_addcontrol as an example. Do not forget to set caching for the display method when added run-time too.
Let us know how it goes and kindly mark all answers with a checkbox next to the posts if it proves helpful in resolving your issue.
I'm already caching the display methods, but since this is a grid and all the values will be different, it still needs to get data for each of the rows the first time. There are 3 fields, all with display methods. I'll look at your second suggestions (dynamically adding) and see if I can use that. Thanks for responding.
The issue is not security, but performance. If I add the columns to the grid as non visible, they still get populated (for everybody), correct?
You could add the form control runtime only for her userid, or for people with certain security group (if the request may repeat). Or you may add the display methods by default with Visible = false, and flip it on for her user/security role in the initialization of the form.
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,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156