[progress Communities] [progress Openedge Abl] Forum Post: Re: Can I Bypass A Validate...

  • Thread starter Thread starter mpiscoso@gmail.com
  • Start date Start date
Status
Not open for further replies.
M

mpiscoso@gmail.com

Guest
I can suggest two ways. 1. Don't use a validate record data trigger and don't set the value is always required flag on the desired field. Instead, use your pages to set the field as required. 2. Create a checkbox field such as "validate relationship?" Which should have an initial value of true for all records. Use this field in your trigger as a condition where you only validate if the checkbox is set to true. On your createRecord() api, set the value of your trigger created records to false so that they wont get validated. Also, if you plan to create a lot of records using createRecord() you might encounter governor limits such as no. Of triggers ran per transaction or formula runtime. I suggest you also look into the combination of setFieldValue() + runTrigger() on a Create Record Trigger which has a data map and has run dependent triggers checked in its trigger options. Although if you are only creating a small amount of records, it should be good Hope this helps.

Continue reading...
 
Status
Not open for further replies.
Back
Top