To make Object Readonly: setFlag(7L,true);
To make Object Editable: setFlag(7L,false);
Note:
1.If object is readonly, can't make fields editable in that object.
2. If object is readonly, then make object editable using setFlag(7L,false);. Now all the fields will be editable, and make other fields readonly by using setFieldFlag("<attributename>",7L,true);
To make Object Editable: setFlag(7L,false);
Note:
1.If object is readonly, can't make fields editable in that object.
2. If object is readonly, then make object editable using setFlag(7L,false);. Now all the fields will be editable, and make other fields readonly by using setFieldFlag("<attributename>",7L,true);