Hi, I have to enable or disable a field on the basis of selection of any data in a drop down field.How to do that???I was trying by overriding the modified method on the dropdown field at tha datasource level on the form?
hi Kalpana,
Yes, U have write the code in modified as well as active methods …
Suppose u have in drop down Customer and vendor …
For customer u want to make a field Name as enabled and for vendor Disabled…
Write the following code in active and modified methods…
After super method…
if(table.type == “customer”)
{
Datasourcename_ds.object(fieldnum(table,name)).allowedit(true);
}
else if(table.type = “vendor”)
{
Datasourcename_ds.object(fieldnum(table,name)).allowedit(false);
}