You need to sign in to do that
Don't have an account?

when i write vf code for oppertunity or solution then it always show some error why?
And my code for Oppertunity is this...what is my mistak and same as when i write for solution it also shows mw some error?
apex:page standardController="Opportunity">
<apex:form >
<apex:pageBlock title="Opportunity Edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="save" />
<apex:commandButton action="{!cancel}" value="cancel"/>
<apex:commandButton action="{!save&new}" value="save&new"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Opportunity Information" columns="2">
<apex:inputField value="{!Opportunity.Private}"/>
<apex:inputField value="{!Opportunity.name}"/>
<apex:inputField value="{!Opportunity.Type}"/>
<apex:inputField value="{!Opportunity.LeadSource}"/>
<apex:inputField value="{!Opportunity.Amount}"/>
<apex:inputField value="{!Opportunity.CloseDate}"/>
<apex:inputField value="{!Opportunity.NextStep}"/>
<apex:inputField value="{!Opportunity.Stage}"/>
<apex:inputField value="{!Opportunity.Probability(%)}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
apex:page standardController="Opportunity">
<apex:form >
<apex:pageBlock title="Opportunity Edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="save" />
<apex:commandButton action="{!cancel}" value="cancel"/>
<apex:commandButton action="{!save&new}" value="save&new"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Opportunity Information" columns="2">
<apex:inputField value="{!Opportunity.Private}"/>
<apex:inputField value="{!Opportunity.name}"/>
<apex:inputField value="{!Opportunity.Type}"/>
<apex:inputField value="{!Opportunity.LeadSource}"/>
<apex:inputField value="{!Opportunity.Amount}"/>
<apex:inputField value="{!Opportunity.CloseDate}"/>
<apex:inputField value="{!Opportunity.NextStep}"/>
<apex:inputField value="{!Opportunity.Stage}"/>
<apex:inputField value="{!Opportunity.Probability(%)}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I'm guessing you copied a pasted incorrectly, as the first issue I see is on line 1: You are missing an opening angle bracket. It should be:
Additionally, 'save&new' is not supported action method. You can see a list of supported methods here: https://www.salesforce.com/docs/developer/pages/Content/pages_controller_std_actions.htm
Also, in you list of inputField's you are referncing the field label. You need to refernece the field name instead. As an example: Should be change to:
You'll want to check all the names to make sure you are using the right one. You can do that from Setup | Customize | Opportunities | Fields
Also, if you could post the error you are getting it will help us help you :)
Can you post the error message that you are getting so that we can help?
Error: Unknown property 'OpportunityStandardController.save'
- save
- quicksave
- edit
- delete
- cancel
- list
It's a feature request, so save & new is not available yet. You can upvote this idea - https://success.salesforce.com/ideaView?id=08730000000kMNjAAM