If you want to allow edit yes or no on form level then you can try below sample code example.
Table field allow edit property on form data source level in axapta . You can example in active or create method in form data-source.
Table field allow edit property on form data source level in axapta . You can example in active or create method in form data-source.
dsCalculationsFactors_ds.object(fieldnum(CalculationsFactors, Allowance)).allowEdit(true);