function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Saugandh KSaugandh K 

'CloseCase' operation from a custom Case visualforce page.

I am working on case screen where i have various recordtypes.
For a particular recordtype, i have overriden the case edit page using visualforce. Here the 'Save' button functionality is working properly and it redirects to the case detail page. But I am unable to do the 'CloseCase' button operation. i.e when i click on 'CloseCase' it should redirect to the case close page.
User-added image
Saugandh KSaugandh K
This is how i handled the 'Save' button operation:
 
if(thisCase.id == null)
                {
                    Database.saveResult s = Database.insert(thisCase);
                    p= new PageReference('/'+s.id);
                }
                else
                {
                    Database.saveResult s = Database.update(thisCase);
                    p= new PageReference('/'+s.id);
                }
return p;