You will not be able to make a particular line non editable.
The only way is to make an error “after” they inputted the value into the field. It means the field is editable but once user put value, Nav will check the condition and give error message depends on the condition.
Well I just read your answer before again. Why doesn’t it work with Lookup fields? If you have put the EDITABLE correctly on the onFormat for the field, then you will not be able to change the field. Yes, you can still make a lookup. But you will not be allowed to edit the content of the field you are coming from.
UNLESS you have created some custom code on the onLookup of the table, which will update the table. Then you need to alter this code also.
Yes I have got some codes in the onLookup of that field. But where else can i write this code so that my lookup field bcomes non editable once the condition becomes false.
No I’m not putting it on the onAfterGetCurrRecord. You have to put the code on the onFormat of the fields. And it has to be in the form of: CurrForm.theField.EDITABLE(IsEditable);
not
CurrForm.EDITABLE(IsEditable);
As the latter will make the whole form non editable.