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
veeru417veeru417 

standard controller actions are not working? what is the problm?

Hi,

i have created a Vf page on account using standard controller,in that command button i have used save but the save(stndrd cntrlr action )is not working .i tried for custom objects also but it is not working.

  i have tried the same code in some other dev edition it is working on that what is the problem.

 

Can any one tell me what is the problem...?

 

 

thanks 

veer

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

Try adding an <apex:pageMessages /> component to the page - that will show you if there are problems with the save.

All Answers

bob_buzzardbob_buzzard

Can you post your markup?  I would expect it to work across all dev editions.

veeru417veeru417
<apex:page standardController="Account">
<apex:form>
<apex:pageBlock title="My Content" mode="edit">
<apex:pageBlockButtons>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="My Content Section" columns="2">
<apex:inputField value="{!account.name}"/>
<apex:inputField value="{!account.type}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 it is working another edition but not in my edition

bob_buzzardbob_buzzard

Try adding an <apex:pageMessages /> component to the page - that will show you if there are problems with the save.

This was selected as the best answer
veeru417veeru417

Thanks bob,

i got the problem validation rules and triggers is the problem.

 

Thanks bob your post is useful to me,it helps me a lot .