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
naveen rahulnaveen rahul 

how to create custom object Create record form(not default one)

created a custom object called bank,how do i create an controller and vfp for creating a new record for bank object. all ready i have list,edit,delete functions in the controller.

*new to salesforce.

 

 

Virendra ChouhanVirendra Chouhan
Hi Naveen

For creating Vf page 
Go to setup -> develop - > page 
then New and write name of that vf page and click to Save.
After that click on Privew button.

i have created vf page for my Book__C object and only for two field.
<apex:page standardController="Book__c">
    <apex:form >
        <apex:pageBlock title="Book Object">
            <apex:pageBlockSection title="Book Edit">
                <apex:inputField value="{!Book__c.name}"/>
                <apex:inputField value="{!Book__c.Author__c}"/>
            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}" id="Savebtn"/>
              
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>


Virendra ChouhanVirendra Chouhan
Hi Naveen 

You have to read and practice of this workbook of visualforce .
http://www.salesforce.com/us/developer/docs/workbook_vf/
Rajendra ORajendra O
Please refer this salesforce document :- http://www.salesforce.com/us/developer/docs/pages/Content/pages_custom_list_controller.htm if it didn't help please post the issue you are facing.

As you are new to sfdc I would highly recommend you should should check out following links:-
https://developer.salesforce.com/page/An_Introduction_to_Visualforce
https://developer.salesforce.com/page/An_Introduction_to_Apex
naveen rahulnaveen rahul

it would be great if someone post the controller,i got them working acutally 

 

thanks

D Naveen