Dear Experts,
I have an enum field with 3 elements, eg. InProcess, Delivered and Completed. I want if another field named received is not "1" and user selects completed so it will popup an error msg that "completed cannot be selected because received field is not 1" while leaving the focus from field. Received field is in Line table and enum field in its header table.
I tried it with enter() but its not working... If someone can share code or way to do that i'll be very thankful.
TIA,
Aamir Raza
*This post is locked for comments
Thanks a lot Deepak for your help. You resolved it.
I would suggest to write your business logic on modified method of 'EnumField' field. If its a std object, use event handler method of that field.
if(table.received != 1 && enumfield == Completed)
error(completed cannot be selected because received field is not 1.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156