Beruflich Dokumente
Kultur Dokumente
1.apiVersion : This will specify the verion of api used in the VF page .
if you don’t specify any version no by default it will take latest version i.e 33.0
2.action : when ever we request the page from the server first it will perform the action
Action can be a url of the page which need to be opened or a method from the class
3.showHeader : This is a Boolean value when we set it as true standard salesforce look and
feel of salesforce header and side bar components of the page displayed
When we set it as false salesforce header and sidebar components are not displayed
4.Sidebar : This is Boolean value when we set it as true sidebar components on the page
5.setUp : This will take the Boolean value if set it as true setup admin menu will be
displayed
6.contentType : This wil specify content of the page and we can display the page in the
required format
renderAs=”pdf”
9.rendered
If we want to display the data on the VF page it should be displayed as formule expression
Syntax : {! Expression }
{! 10}
{! 10+20}
{! 'sam'}
{! 'Sam'&'kiran'}
{! ISNULL(10)}
{! ! ISNULL(10)}
Global data : Data which remains same throughout the application once’s user has logged in is
called global data
$User
$Profile
$UserRole
Synatax: { ! $GlobalObject.FieldName}
Ex: {!$User.LastName}
{!$User.Firstname}
<apex:page >
{!$User.FirstName}<br/>
{!$User.LastName}<br/>
{!$Organization.Name}<br/>
{!$Profile.Name}
</apex:page>
Synatx:https://ap2.salesforce.com/apex/pageName ?parameter=val
Ex: https://ap2.salesforce.com/apex/page1?Name=satish
If you want to pass more than one parameter in the url then parameters should be separated by
‘&’
https://ap2.salesforce.com/apex/page1?name=satish&Age=30&qualificatiion=phd
If you want to read the data from the url then we have the following syntax
{! $Currentpage.parameters.paramtername}
Ex: {!$Currentpage.parameters.name}
<apex:page >
{!$Currentpage.parameters.name}<br/>
{!$Currentpage.parameters.age}
</apex:page>
Q: How to read the data from apex class into the VF page
If we want to refer the data from apex class into the VF page we have define the apex class as
VF page
<apex:page controller="Employee1">
Name :{! name} <br/>
salary:{!salary} <br/>
Exp :{! exp}
</apex:page>