• sumanforce@gmail.com
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

Hi,

 

I am a java developer. I am trying to learn how to develop a web application on salesforce.

 

Can you please help me how to proceed.

 

 

Thanks,

Suman

Hi ,

 

Below  are my VisualForce pages & controller.

After i insertcontact() is called,, where can i see my saved data 

 

<apex:page controller="savecontact">

    <apex:form>

<apex:panelgrid columns="2">

        LastName:<apex:inputText value="{!lastname}" />

        EmailId:<apex:inputText value="{!mailid}" /> 

<apex:commandbutton value="Save" Action="{!insertcontact}" />

</apex:panelgrid>

</apex:form>

</apex:page>////////////////////////// Controller /////////////////////

Public class savecontact

{

Public string lastname{get;set;}

Public string mailid{get;set;}

Public void insertcontact()

{

Contact cont=new contact (lastname=lastname, email=mailid);

Insert cont;

}

}

 

Please help

Thanks

Suman

Hi Friends, I have designed a form using visualforce. After filling the form, i attached a controller (Apex Class). I need to save the data to the database. Can you please help me Thanks suman
Hi Friends, I have designed a form using visualforce. After filling the form, i attached a controller (Apex Class). I need to save the data to the database. Can you please help me Thanks suman

I want to thank the team at sforce that make available the new Java examples. These examples will be of great help to all new Java developers using the API.  These samples are a time saver.

Thanks.

Santo Rosario

Patient Care, Inc

 

  • July 28, 2003
  • Like
  • 0