You need to sign in to do that
Don't have an account?
Reddy
Unknown method 'AccountInformation.save()'----- vf page;
Unknown method 'AccountInformation.save()'----- vf page;
<apex:page Controller="AccountInformation" tabStyle="Account" >
<apex:form>
<apex:pageblock title="Account Details" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="save"/>
<apex:commandButton action="{!new}" value="new" />
<apex:commandButton action="{!delete}" value="delete" />
</apex:pageBlockButtons>
<apex:pageBlockSection title="My Data section" columns="2">
Name:<apex:inputField value="{!account.name}"/>
AccountNumber:<apex:inputField value="{!account.account number}"/>
Industry:<apex:inputField value="{!account.industry}" />
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
==============================
unexpected token: 'list' --- ( error message)
public class AccountInformation {
public string name{set;get;}
public string industry{set;get;}
public integer AccountNumber{set;get;}
public accountInformation data
{
list<account> acc = new list<Account>();
Account a= new Account();
a.name='narendar';
a.industry='energy';
a.Account Number=1412001;
insert a;
system.debug('list of value:' +acc);
}
}
<apex:page Controller="AccountInformation" tabStyle="Account" >
<apex:form>
<apex:pageblock title="Account Details" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="save"/>
<apex:commandButton action="{!new}" value="new" />
<apex:commandButton action="{!delete}" value="delete" />
</apex:pageBlockButtons>
<apex:pageBlockSection title="My Data section" columns="2">
Name:<apex:inputField value="{!account.name}"/>
AccountNumber:<apex:inputField value="{!account.account number}"/>
Industry:<apex:inputField value="{!account.industry}" />
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>
==============================
unexpected token: 'list' --- ( error message)
public class AccountInformation {
public string name{set;get;}
public string industry{set;get;}
public integer AccountNumber{set;get;}
public accountInformation data
{
list<account> acc = new list<Account>();
Account a= new Account();
a.name='narendar';
a.industry='energy';
a.Account Number=1412001;
insert a;
system.debug('list of value:' +acc);
}
}
Page
All Answers
1) https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/apex_ApexPages_StandardController_methods.htm
Please update your code like below
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/apex_pages_standardcontroller.htm
Let us know if this will help you
lets tell me Error message...........
Let us know if this will help you
unexpected token: 'public'
Page