On my page am doing a search (Case Number) and storing the Data in the user record, So whenever the user login back trying to display the records based on old search.
In that case, Trying to build a dynamic object and adding the value
sObject sObj; //Schema describe to get the object sObj.put(fld, fdValue); /*Here I want to add caseNumber as field set an value Not going to any DML operation Need to refer it in VF page to display the search using apex:inputfield*/
When I do am getting an error as CaseNumber is NOT Editable. Is there any way workaround to add value to the ReadOnly field just for reference in the VF page.