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,
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.
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, You can refer these articles
theaxapta.blogspot.com/.../how-to-enabledisable-fields-in-dialog.html
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156