You need to sign in to do that
Don't have an account?
Iswarya Sekar
Please help me
Hai!! Im doing a project in Case object. The requirement is have to create a Vf page to close the case. when clicking closecase button i have to give the reason and status of the case. then have to save that. that record should be displayed in VF page.
<apex:page standardController="Case" extensions="newClass" showHeader="false" > <apex:form > <apex:pageBlock title="Case Status"> <apex:pageBlockSection columns="1"> <apex:inputField value="{!Case.Status}"/> <apex:inputField value="{!Case.Reason}"/> <apex:inputField value="{!Case.Priority}"/> </apex:pageBlockSection> <div> <apex:commandButton action="{!redirectToMyVF}" value="CloseCase"/> </div> </apex:pageBlock> </apex:form> </apex:page> My page1 <apex:page standardController="Case" extensions="Displayrecord" showHeader="false" > <apex:form > <apex:pageBlock title="Case Status"> <apex:pageBlockSection columns="1"> <apex:inputField value="{!Case.Status}"/> <apex:inputField value="{!Case.Reason}"/> <apex:inputField value="{!Case.Priority}"/> </apex:pageBlockSection> <apex:pageBlockButtons> <apex:commandButton action="{!save}" value="Save"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page> My page 2 public class newClass { public newClass (ApexPages.StandardController Cases) { } public PageReference redirectToMyVF() { PageReference pref = new PageReference('/apex/Page'); pref.setRedirect(true); return pref; } public PageReference save() { try{ update this.Cases; }catch(exception e){ } PageReference page = new Pagereference('/apex/Case_page?Id='+Case.Id); page.setRedirect(true); return page; } } my apex class
Please help me
Iswarya Sekar
Anyone please help me to sort out this!!