I am working on a customization to the JobEntry form. If the job being retrieved is in a different site, the customization will close the form and open a new instance of the form in the site the job is located in. I have found I am able to do this when the form is first launched by looking at the value passed into launch form options. So far so good
However, I am not able to run the custom code when a user has finished entering a value into the job number text box. I have attempted to run my code in event handlers on the control (Leave and Validating) and form events (BeforeAdapterMethod on jobAdapter and BeforeFieldChange on JobHead.JobNum). The only event that starts running before a validation from the base UI is Leave.
Unfortunately, there appears to be an event handler in the base UI form on the control bound to JobHead.JobNum that throws a Business Layer Exception before my code actually executes.
The error is “Job:myjob is located in site: mysite. Access not allowed”. It appears to be getting thrown when the UI calls JobEntry.ValidateJobNum. Since this is called via method, I think I could override the base BPM but that seems a bit dangerous.
My question is is it possible to suspend the validation on the base form from within the customization without touching the method directive? It seems like it should be possible but I am lacking the syntax.
Thanks,
Tanner