You need to sign in to do that
Don't have an account?
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
Check it in the contacts in Salesforce enviroment.You can compare it by Created Date or by Created By fields.
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