I want to add a error message when a specific industry class type is selected.
but I couldn’t get it work, can anyone help out?
Pre-processing
> Before it gets to the server
Post-processing
> It’s been to the server and it’s back with a piece of cake …
Change your trigger and look at condition and go for something like
the changed row will cover - Added & Updated rows.
Again, pre-processing and post-processing.
You’re still in post processing. The server already knows the selection as BPMs are server side only.
Move it to pre-processing…retry.
Show me the on screen field you’re monitoring…
Till the time system recognizes the change row, another method has been triggered and hence GetNewCustIC method is by-passed.
Try moving the same condition and exception to Update method and check?
Use a message box with no condition to make sure that 1. it’s firing, and 2. what’s in that field is what you think should be there.
Industry class has an ID and description. You might be seeing the description which may not be the same as the ID.
Also, (and you’ll find this out when you do your message box) get new is always going to be blank. It doesn’t have anything populated until change it in the UI then do an Update.
update works!
It’ll be nice to know when a method is by-passed.
It wasn’t bypassed. It runs when you get a new Cust IC. You had a condition looking for a specific value, but getNew is a mostly blank dataset. If you remove the condition, you’ll find that it fires. Just not when you thought it did.