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
sumanforce@gmail.comsumanforce@gmail.com 

Where to view saved data

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

cloudmaniacloudmania

Check it in the contacts in Salesforce enviroment.You can compare it by Created Date or by Created By fields.

yvk431yvk431

if you want this for verification purpose , you just need to add

System.debug('**test**''+cont);

after the insert statement and you can view this using either debug log or system log. 

 

 

--yvk