Pinned topic Saving a Read Only Field
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I have a field on the screen that I have made read only. I am setting the value of that field in code based off of a user action. When I go to save my record, all changes are saved except the read only field. How would I get the value of that field to save?
Updated on 2013-03-20T08:07:45Z at 2013-03-20T08:07:45Z by SystemAdmin
Re: Saving a Read Only Field2013-03-19T18:47:45ZThis is the accepted answer. This is the accepted answer.Hi,
Did you tried using the NOVALIDATION flag while setting the value of readonly field in code.
Mbo currentMbo = (Mbo) mboSet.getMbo();
- currentMbo.setValue("DESCRIPTION", value, Mbo.NOVALIDATION);
- currentMbo.setValue("DESCRIPTION", value, Mbo.NOACTION);
- currentMbo.setValue("DESCRIPTION", value, Mbo.NOACCESSCHECK|Mbo.NOVALIDATION);