You need to sign in to do that
Don't have an account?
Vinoth-Apex
How to access our own Created Objects
Hi to all,
How we can access our own created objects. (Like Account ) I created one Book Object .
<apex:page standardController="Book" sidebar="false">
<apex:form >
<apex:inputField value="{!Book.Book_Name}"/>
<apex:inputField value="{!Book.Author_Name}"/>
<apex:inputField value="{!Book.Price}"/>
<apex:commandButton action="{!save}" value="Save!" />
</apex:form>
</apex:page>
The Error is Error: Book does not exist
Thanks and Regards
Vino X
If you created a custom object or custom field, look for API name of the object or field not the Label.
Every custom object created has "__c" appended to it.
Setup| App Setup | Create | Objects
after navigating like mentioned above, look for the object and click to open the object record detail. You will find a field called API Name. You have to use this to reference programatically.
Modified Version:
<apex:page standardController="Book__c" sidebar="false">
<apex:form >
<apex:inputField value="{!Book__c.Book_Name__c}"/>
<apex:inputField value="{!Book__c.Author_Name__c}"/>
<apex:inputField value="{!Book__c.Price__c}"/>
<apex:commandButton action="{!save}" value="Save!" />
</apex:form>
</apex:page>
Hope this helps!
Sales4ce
All Answers
If you created a custom object or custom field, look for API name of the object or field not the Label.
Every custom object created has "__c" appended to it.
Setup| App Setup | Create | Objects
after navigating like mentioned above, look for the object and click to open the object record detail. You will find a field called API Name. You have to use this to reference programatically.
Modified Version:
<apex:page standardController="Book__c" sidebar="false">
<apex:form >
<apex:inputField value="{!Book__c.Book_Name__c}"/>
<apex:inputField value="{!Book__c.Author_Name__c}"/>
<apex:inputField value="{!Book__c.Price__c}"/>
<apex:commandButton action="{!save}" value="Save!" />
</apex:form>
</apex:page>
Hope this helps!
Sales4ce
Hi friend,
Thanks for u r help.
its work. can u forward notes details about apex and its queries related things.
Database related information also.
Thanks in advance.