# Bpm to force user to fill in promise date in po entry **Category:** [Vista/Vantage 8](https://www.epiusers.help/c/vantage-8/8) **Created:** 2017-02-02 16:02 UTC **Views:** 1330 **Replies:** 7 **URL:** https://www.epiusers.help/t/bpm-to-force-user-to-fill-in-promise-date-in-po-entry/37134 --- ## Post #1 by @marktraz all, want to create bpm to make users fill in a promise date for a po. I think what would make sense is not to let them approve it unless its filled in. any ideas? --- ## Post #2 by @josecgomez pre processing BPM on PO.Update if field is null then Raise Exception --- ## Post #3 by @bw2868bond The first release is created automagically – we had to use a combination of BPMs to auto fill in the promise date I can fire up our old V8 system to export the BPMs if wanted – it may even have required a customization as well – won’t know until I look bw --- ## Post #4 by @marktraz if its not to much trouble I will take it. thank you --- ## Post #5 by @PaulMorgan you could also customise the screen....... add a Form Event Wizard, selecting the BeforeFieldChange Below is an example we use for sales orders to prevent users entering a need by date 30 days less than today, which is still incorrect but they may have a relevant reason. private void OrderDtl_BeforeFieldChange(object sender, DataColumnChangeEventArgs args) { // ** Argument Properties and Uses ** // args.Row["FieldName"] // args.Column, args.ProposedValue, args.Row // Add Event Handler Code switch (args.Column.ColumnName) { case "NeedByDate": if ((DateTime)args.ProposedValue < System.DateTime.Today.AddDays(-30)) { MessageBox.Show("Need By Date should not be less than Today less 1 month."); } break; default: break; } } --- ## Post #6 by @marktraz jose, so for example the porel.promisedt field of the changed row is equal to null. or would it be the updated row? I have po.update (bpmethodcode) PO (business object) --- ## Post #7 by @josecgomez ChangedRow should be fine. --- ## Post #8 by @bw2868bond PO.Update method Pre Processing Conditions: “number of rows in the 'New PODetail Line' query is not less than 1” [cid:image001.png@01D27DE9.CD53AA30] Actions: “enable dependent post process directives” PO.Update method Post Processing: Conditions: [cid:image002.png@01D27DE9.CD53AA30] Actions: “synchronously execute 4GL for each ttporel. ... record nothing” [cid:image003.png@01D27DEA.10E9E930] --- **Canonical:** https://www.epiusers.help/t/bpm-to-force-user-to-fill-in-promise-date-in-po-entry/37134 **Original content:** https://www.epiusers.help/t/bpm-to-force-user-to-fill-in-promise-date-in-po-entry/37134