We have a subform where we turn on/off the Editable property of the fields on the subform via a command button [CurrForm.ExtItemSubForm.FORM.SetModStatusTrigCode(TRUE)] ...but only checkbox fields turn on/off, not the text fields. Is there a way to turn on/off the Editable property of these text fields on the subform via a command button.
Thanks,
Peter
Peter
0
Comments
What is the exact code that you have put in the SetModStatusTrigCode function?
SetModStatusTrigCode(VAR RALocalModifyRecordBoolean : Boolean)
//RA:: Modification Date: 09/29/2005 :: Intent: Modify Card :: Creation Date: 09/13/2005 :: BEGIN
RAModifyRecordBoolean := RALocalModifyRecordBoolean;
CurrForm.EDITABLE(RAModifyRecordBoolean);
//RA:: Modification Date: 09/29/2005 :: Intent: Modify Card :: Creation Date: 09/13/2005 :: END
Remember, this is the code in the subform.
Thanks and regards,
Peter
Could you do me a favour and try this also on a non-modified standard Navision form like the sales order.
If this also works for you, you can work out the differences between the forms.
We used the Sales Order form format to create our form. We know that this works for a subform that is a tabular form. It also works, as stated, on checkbox fields. We seem to have problems when we put text fields in the form.
Regards,
Peter
Like CtrlShiftF11 sayd, the default value should be editable then, check the properties on the subform.
If you want by default to be the textfields not-editable you can program this in the OnOpenForm.
Sorry to trouble you...I do appreciate your time.
Kindest regards,
Peter
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.