I have a Enum Types of Goods with value (Input /Capital Goods) now, I have a lookup field Production order if I chose input Enum value (Input) lookup should be disabled and for Enum value (capital goods) it should be enabled.
Hi Sachin, You can refer these articles
theaxapta.blogspot.com/.../how-to-enabledisable-fields-in-dialog.html
https://wp.me/p1bEiG-go
First make these controls auto declaration to yes if it's custom form. Then create a new method making the said condition and get the datasource by
Table table = table_ds.cursor();
Then simply call this new method in active and modified of that enum.
Hi Sachin,
For your scenario - You can add the code on the modified method of the Enum control and based on the current Enum value you can enable disable the other control.
Similarly you need to add this on active method also.
Look to the below syntax.
//check for the enum value if(enumvalue = input) { control.enabled(false); } else { control.enabled(true); ]
Thanks,
Girish S.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 734 Super User 2025 Season 2
CA Neeraj Kumar 636
Martin Dráb 553 Most Valuable Professional