
Hi All,
I have 2 questions
1. How can disable/deactivate/inactivate lookup when an option is selected. I am using onvalidate Trigget in the table field and on page field but I can't find any way or method to disable/enable.
2. How do I disable the page on both header and lines when the document is on status Pending Approval on a custom screen? I need also to prevent it from posting.
Create a new variable and assign that variable to the field, action, or page Enabled properties.
On the OnAfterGetCurrRecord event, set that variable to yes or no depending on your condition.