SlideShare a Scribd company logo
1
www.bispsolutions.com www.alacontec.com
Getting Started with Visualforce Part I
Sno Date Modification Author Verified By
1 2019/07/07 Initial Document Shivendra Singh
Pawar
Sumit Goyal
2
www.bispsolutions.com www.alacontec.com
Table of Contents
An Introduction to Visualforce..................................................................................................3
An Example ..............................................................................................................................4
Code Explanation ....................................................................................................................5
Create Visualforce Pages in the Developer Console............................................................5
Compose components to form a page structure.................................................................6
Final Output .............................................................................................................................6
Simple Variables and Formulas.................................................................................................6
Global Variable and Visualforce Expression..........................................................................6
Global Variables....................................................................................................................7
Formula Expression ..............................................................................................................7
3
www.bispsolutions.com www.alacontec.com
An Introduction to Visualforce
Visualforce is a web development framework that enables developers to build sophisticated, custom user
interfaces for mobile and desktop apps that can be hosted on the Lightning Platform. Visualforce enables
developers to extend Salesforce built-in features, replace them with new functionality, and build completely new
apps. Use powerful built-in standard controller features, or write your own custom business logic in Apex.
Developers create Visualforce pages by composing components, HTML, and optional styling elements.
Visualforce can integrate with any standard web technology or JavaScript framework to allow for a more
animated and rich user interface. Each page is accessible by a unique URL.
Login to Salesforce Developer Account; specify custom URL and login credentials.
4
www.bispsolutions.com www.alacontec.com
An Example
This page displays a contact data form.
5
www.bispsolutions.com www.alacontec.com
Code Explanation
• It connects to the Visualforce standard controller, a part of the Visualforce framework that provides
automatic data access and modification.
• When accessed without a record ID, the page displays a blank data entry form. When you click Save, a
new record is created from the form data.
Create and Edit Visualforce Page
Visualforce pages are basic building blocks for application developers. A Visualforce page is similar to a
standard Web page, but includes powerful features to access, display, and update your organization’s data.
Pages can be referenced and invoked via a unique URL.
Visualforce uses a tag-based markup language that’s similar to HTML.
Visualforce boasts nearly 150 built-in components, and provides a way for developers to create their own
components. Visualforce markup can be freely mixed with HTML markup, CSS styles, and JavaScript libraries,
giving you considerable flexibility in how you implement your app’s user interface.
Create Visualforce Pages in the Developer Console
Follow these steps of create Visualforce page in Developer Console:
1. Open Developer Console.
2. Click File –> New –> Visualforce page.
3. Enter name of your new page, and click OK.
4. A new blank Visualforce page opens in the Developer Console.
5. In the Editor enter the Code, and click save under file menu.
6. After writing code click on preview.
6
www.bispsolutions.com www.alacontec.com
Compose components to form a page structure
1. Add <apex:pageBlock> , after the Hello World, it is a structured user interface that group related
items on a page, use auto suggest to add it.
2. Add <apex:pageBlockSection> after the block section.
3. Code looks like this.
Final Output
Simple Variables and Formulas
Global Variable and Visualforce Expression
Visualforce pages can display data retrieved from the database or web services, This dynamic data is accessed
in markup through the use of global variables, calculations, and properties made available by the page’s
controller, together these are known as Visuallforce Expression.
A Visualforce expression is any set of variables, literals, sub-expression or operators that can be resolve in a
single unit.
The expression Syntax in Visualforce is : {! expression}
Anything inside {! } is evaluated or dynamically replaced when the page is rendered.
7
www.bispsolutions.com www.alacontec.com
Global Variables
Use global variables to access and display system values and resources in your Visualforce markup.
For example, Visualforce provides information about the logged-in user in a global variable called $User. You can
access fields of the $User global variable (and any others) using an expression of the following form: {!
$GlobalName.fieldName }.
Formula Expression
Visualforce lets you use more than just global variables in the expression language. It also supports formulas that
let you manipulate values.
The & character is the formula language operator that concatenates strings.
These are more complex formulas that use the TODAY() function.

More Related Content

PDF
Oracle FCCS Getting Started Guide II
PDF
Oracle Financials R12 - GL STEP 1 - Chart Of Accounts
PDF
Fccs valid intersection examples
PDF
Oracle fccs creating new application
PDF
Oracle PBCS Sales driver for retail Business
PDF
Getting started with oracle eprcs
PDF
Encumbrance accounting in oracle ebs r12
PPT
Oracle APPS :Receivables Auto Invoice
Oracle FCCS Getting Started Guide II
Oracle Financials R12 - GL STEP 1 - Chart Of Accounts
Fccs valid intersection examples
Oracle fccs creating new application
Oracle PBCS Sales driver for retail Business
Getting started with oracle eprcs
Encumbrance accounting in oracle ebs r12
Oracle APPS :Receivables Auto Invoice

What's hot (19)

DOCX
Fusion Financial Reporting and Analysis Proof of Concept
PPTX
ORACLE APPS FINANCE FUNCTIONAL R12 ONLINE TRAINING COURSE CONTENT
DOC
PDF
Oracle Purchasing ivas
PPTX
Oracle EBS R11i to R12 financials
DOCX
DOC
Oracle cash management_Anne
PDF
GL - Step 4 - Part 2 - Ledgers & Legal Entities
PDF
Designing a Chart of Accounts for a Global Company Going to Oracle E-Business...
PPTX
Oracle ERP and General Ledger Configuration
PDF
HFM_Course_Content
PPTX
Reports and dashboards @salesforce
PPTX
Fusion Accounting Hub & R12 Co-Existence Offering
PDF
Oracle Financials R12 - GL STEP 3 - Journal Controls
PDF
Streamlining Functionality in Release 12
PDF
Streamlining Functionality In Release 12
PDF
Oracle OSN
PPT
R12 fixed assets new features
PPTX
Oracle Fusion Financial Report Centre Reporting Beginner course
Fusion Financial Reporting and Analysis Proof of Concept
ORACLE APPS FINANCE FUNCTIONAL R12 ONLINE TRAINING COURSE CONTENT
Oracle Purchasing ivas
Oracle EBS R11i to R12 financials
Oracle cash management_Anne
GL - Step 4 - Part 2 - Ledgers & Legal Entities
Designing a Chart of Accounts for a Global Company Going to Oracle E-Business...
Oracle ERP and General Ledger Configuration
HFM_Course_Content
Reports and dashboards @salesforce
Fusion Accounting Hub & R12 Co-Existence Offering
Oracle Financials R12 - GL STEP 3 - Journal Controls
Streamlining Functionality in Release 12
Streamlining Functionality In Release 12
Oracle OSN
R12 fixed assets new features
Oracle Fusion Financial Report Centre Reporting Beginner course
Ad

Similar to Getting Started with Visualforce (20)

DOCX
Visualforce report
PPTX
Getting a Quick Start with Visualforce
PDF
Customizing sales force-interface
PPTX
Introduction to visualforce
PDF
Customizing sales force-interface
PDF
Visualforce controllers
PDF
Workbook vf
PPTX
Introducing Visualforce
PPT
Vf ppt (1)
PPTX
Visualforce
PPTX
Webinar: Salesforce Customization using Visualforce and Lightning Component F...
PDF
Introduction to Visualforce
PPTX
Force.com Friday : Intro to Visualforce
PDF
Visualforce Workbook
PPTX
Force.com Friday - Intro to Visualforce
PDF
Using Visualforce in Salesforce1
PPTX
Force.com Friday: Intro to Visualforce (May 8, 2015)
PPTX
SFDC UI - Introduction to Visualforce
PPTX
Coding Apps in the Cloud with Force.com - Part 2
PDF
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
Visualforce report
Getting a Quick Start with Visualforce
Customizing sales force-interface
Introduction to visualforce
Customizing sales force-interface
Visualforce controllers
Workbook vf
Introducing Visualforce
Vf ppt (1)
Visualforce
Webinar: Salesforce Customization using Visualforce and Lightning Component F...
Introduction to Visualforce
Force.com Friday : Intro to Visualforce
Visualforce Workbook
Force.com Friday - Intro to Visualforce
Using Visualforce in Salesforce1
Force.com Friday: Intro to Visualforce (May 8, 2015)
SFDC UI - Introduction to Visualforce
Coding Apps in the Cloud with Force.com - Part 2
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
Ad

More from Rati Sharma (8)

PDF
Oracle PBCS Calculating Depreciation
PDF
Apache Kafka with AWS s3 storage
PDF
Display contact using aura and Ligtning components (apex and visualforce) con...
PDF
Flask Pykafka integration and Setup
PDF
Sales quota planning creating application
PDF
Oracle Enterprise PBCS Driver Based Planning and Budgeting
PDF
Oracle strategic workforce planning cloud (hcmswp)
PDF
Python nltk synonyms and antonyms
Oracle PBCS Calculating Depreciation
Apache Kafka with AWS s3 storage
Display contact using aura and Ligtning components (apex and visualforce) con...
Flask Pykafka integration and Setup
Sales quota planning creating application
Oracle Enterprise PBCS Driver Based Planning and Budgeting
Oracle strategic workforce planning cloud (hcmswp)
Python nltk synonyms and antonyms

Recently uploaded (20)

PPTX
GDM (1) (1).pptx small presentation for students
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Structure & Organelles in detailed.
PDF
01-Introduction-to-Information-Management.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
GDM (1) (1).pptx small presentation for students
Insiders guide to clinical Medicine.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Final Presentation General Medicine 03-08-2024.pptx
Pharma ospi slides which help in ospi learning
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Microbial disease of the cardiovascular and lymphatic systems
102 student loan defaulters named and shamed – Is someone you know on the list?
FourierSeries-QuestionsWithAnswers(Part-A).pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Anesthesia in Laparoscopic Surgery in India
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPH.pptx obstetrics and gynecology in nursing
STATICS OF THE RIGID BODIES Hibbelers.pdf
Basic Mud Logging Guide for educational purpose
Cell Structure & Organelles in detailed.
01-Introduction-to-Information-Management.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Getting Started with Visualforce

  • 1. 1 www.bispsolutions.com www.alacontec.com Getting Started with Visualforce Part I Sno Date Modification Author Verified By 1 2019/07/07 Initial Document Shivendra Singh Pawar Sumit Goyal
  • 2. 2 www.bispsolutions.com www.alacontec.com Table of Contents An Introduction to Visualforce..................................................................................................3 An Example ..............................................................................................................................4 Code Explanation ....................................................................................................................5 Create Visualforce Pages in the Developer Console............................................................5 Compose components to form a page structure.................................................................6 Final Output .............................................................................................................................6 Simple Variables and Formulas.................................................................................................6 Global Variable and Visualforce Expression..........................................................................6 Global Variables....................................................................................................................7 Formula Expression ..............................................................................................................7
  • 3. 3 www.bispsolutions.com www.alacontec.com An Introduction to Visualforce Visualforce is a web development framework that enables developers to build sophisticated, custom user interfaces for mobile and desktop apps that can be hosted on the Lightning Platform. Visualforce enables developers to extend Salesforce built-in features, replace them with new functionality, and build completely new apps. Use powerful built-in standard controller features, or write your own custom business logic in Apex. Developers create Visualforce pages by composing components, HTML, and optional styling elements. Visualforce can integrate with any standard web technology or JavaScript framework to allow for a more animated and rich user interface. Each page is accessible by a unique URL. Login to Salesforce Developer Account; specify custom URL and login credentials.
  • 5. 5 www.bispsolutions.com www.alacontec.com Code Explanation • It connects to the Visualforce standard controller, a part of the Visualforce framework that provides automatic data access and modification. • When accessed without a record ID, the page displays a blank data entry form. When you click Save, a new record is created from the form data. Create and Edit Visualforce Page Visualforce pages are basic building blocks for application developers. A Visualforce page is similar to a standard Web page, but includes powerful features to access, display, and update your organization’s data. Pages can be referenced and invoked via a unique URL. Visualforce uses a tag-based markup language that’s similar to HTML. Visualforce boasts nearly 150 built-in components, and provides a way for developers to create their own components. Visualforce markup can be freely mixed with HTML markup, CSS styles, and JavaScript libraries, giving you considerable flexibility in how you implement your app’s user interface. Create Visualforce Pages in the Developer Console Follow these steps of create Visualforce page in Developer Console: 1. Open Developer Console. 2. Click File –> New –> Visualforce page. 3. Enter name of your new page, and click OK. 4. A new blank Visualforce page opens in the Developer Console. 5. In the Editor enter the Code, and click save under file menu. 6. After writing code click on preview.
  • 6. 6 www.bispsolutions.com www.alacontec.com Compose components to form a page structure 1. Add <apex:pageBlock> , after the Hello World, it is a structured user interface that group related items on a page, use auto suggest to add it. 2. Add <apex:pageBlockSection> after the block section. 3. Code looks like this. Final Output Simple Variables and Formulas Global Variable and Visualforce Expression Visualforce pages can display data retrieved from the database or web services, This dynamic data is accessed in markup through the use of global variables, calculations, and properties made available by the page’s controller, together these are known as Visuallforce Expression. A Visualforce expression is any set of variables, literals, sub-expression or operators that can be resolve in a single unit. The expression Syntax in Visualforce is : {! expression} Anything inside {! } is evaluated or dynamically replaced when the page is rendered.
  • 7. 7 www.bispsolutions.com www.alacontec.com Global Variables Use global variables to access and display system values and resources in your Visualforce markup. For example, Visualforce provides information about the logged-in user in a global variable called $User. You can access fields of the $User global variable (and any others) using an expression of the following form: {! $GlobalName.fieldName }. Formula Expression Visualforce lets you use more than just global variables in the expression language. It also supports formulas that let you manipulate values. The & character is the formula language operator that concatenates strings. These are more complex formulas that use the TODAY() function.