There are several ways to disable a field, but in many cases the whole column is disable. In these blog I am discussing about how to disable a field base on other field value.
Step 1:
First of all, you have to change the properties of your field in the form design, change the declaration property to YES.
Step 2: Go to Datasource in your form, select the field Datasource, in method override the active method and write you logic there.
For example:
In active method:
formfieldname.enable(datasourcename.fieldname > 3);
Whenever a record is active in a grid the above line base on condition update the form field.
Step 1:
First of all, you have to change the properties of your field in the form design, change the declaration property to YES.
Step 2: Go to Datasource in your form, select the field Datasource, in method override the active method and write you logic there.
For example:
In active method:
formfieldname.enable(datasourcename.fieldname > 3);
Whenever a record is active in a grid the above line base on condition update the form field.
No comments:
Post a Comment