I’d like to be able to warn users when they make a new Part (in Part maintenance), when the PartNum fails to meet a specific format. I know how to warn or stop them. But not how to give them the opportunity to proceed or stop.
10,000 foot view …
User enters a new P/N
If that P/N doesn’t match a specified format, prompt the user and wait for them to select either “Proceed” or “Stop”
If they select Proceed, save the new part record (and maybe preset some of the part fields)
If they select Stop, dont save the record (maybe clear the Part maint. form)
Is this best done as a Customization of the Part maintenance form, or a via a Method?
When you enter a new part number, and hit tab, you are immediately asked if you want to make a new part (assuming you didn’t select New Part first). Would the OnLeave event fire before the attempt to fetch the part info, or the prompt if new?
If you’re trying to protect the database from bad data then a BPM is better because it will check if it’s being entered at the screen, in a ServiceConnect script (WCF), or a REST call. A customization will only work in the screen.
You can use both to give the screen some nice UI features but protect with the BPM - IMHO.
One concern was creating about creating a prompt (and requiring user interaction) on automated things like service connect, or when a configurator is setup to make a new P/N.