You need to sign in to do that
Don't have an account?
New record not getting inserted using standard controller for custom object.
I have created a custom object todoitem__c and iam trying to insert new record into this object using standardcontroller as shown below
<apex:page standardController="toDoItem__c" >
<apex:form>
<apex:pageBlock title="Save Item">
<apex:pageBlockButtons>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="My Content Section" columns="2">
<apex:inputField value="{!toDoItem__c.name}"/>
<apex:inputField value="{!toDoItem__c.dueDate__c}"/>
<apex:inputField value="{!toDoItem__c.itemNumber__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
but the record is not getting inserted.
please let me know am i doing any mistake here
thank you
if you still don't see the values, check the debug logs...
All Answers
Post your controller too...
sorry , here iam using standard controller of todoitem__c object
My bad... didn't see the post fully....
<apex:page standardController="Payment__c" tabStyle="Payment__c" >
<apex:form>
<apex:pageBlock title="Expense Record ">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Expense Details" columns="2">
<apex:inputField value="{!Payment__c.Amount__c}"/>
<apex:inputField value="{!Payment__c.Date__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
if you still don't see the values, check the debug logs...
thank you its working