So apparently my client has had more than 1 issue with his employees imputing the wrong date in a field. Like 2120 instead of 2021. How can I create a customization that red flags this and doesn’t allow a save. Something like if date doesn’t equal 2021 -2022, red flag. I think I’d like to implement this system wide to any date field, thoughts? Thanks!
Answer
How to add a red flag error to an incorrect date.
Best answer by Naveen Boga
Hi
Here is the sample code for your reference.
if (Condition) // add the required condition here
{
sender.RaiseExceptionHandling<SOOrder.orderDate>(doc, null, new PXSetPropertyException(ErrorMessages.IncorrectDateProvided));
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
