- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 02:02 AM
Hi,
i want the user to be able to insert a new record from the list view control. The BR i have defined on my table for the form will work as usual(or so is my understanding, plz advice if otherwise). Now in my table i have some fields that are not mandatory but using the UI policies i am making them mandatory based on some calculations and other fields. Is there a way i can enforce the mandatory fields constraint on the list view control insert?
what i have planned is to have a BR on before insert, and in that i will check for all the mandatory fields values and if some field is missing a value ill setAbortAction to true.
Please suggest a better approach if possible.
Regards
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 02:08 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 02:08 AM
Convert the UI policy to Data policy .. That should work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 02:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 02:32 AM
Also note in list control editing , the BR does not run. You can use the onCellEdit client script / Data Policy as suggested by Kalai for making fields as mandatory.
Thanks and Hope it helps.
Akhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 05:01 AM
BR is a servers side trigger. It will run however the record is updated. It could be via form, list, web service , etc