Visualforce report

  • View

  • Download

Embed Size (px)

Text of Visualforce report







(Computer Science Engineering)




Mrs Manisha maamCSE DepartmentRinku Saini13EEBCS066


I would like to place on record my deep sense of gratitude to Prof. Manoj Kudi, HOD-Dept. of Computer Science Engineering, Govt. Engineering College Bikaner, India for his generous guidance, help and useful suggestions.

I express my sincere gratitude to Mrs Manisha Govt. Engineering College Bikaner, Rajasthan, encouragement and supervision throughout the course

maam., Dept. of Computer Science Engineering, India, for his stimulating guidance, continuous of present work.

I also wish to extend my thanks to Prof Vikram Singh Chouhan and other colleagues for attending my seminars and for their insightful comments and constructive suggestions to improve the quality of this Seminar work.

I am extremely thankful to Mr.J.P. Bhamu, Principal, Govt. Engineering College Bikaner, for providing me infrastructural facilities to work in, without which this work would not have been possible.

Signature of Student

Rinku Saini (13EEBCS066)


Visualforce is the component-based user interface framework for the platform. The framework includes a tag-based markup language, similar to HTML. Each Visualforce tag corresponds to a coarse or fine-grained user interface component, such as a section of a page, or a field. Visualforce boasts about 100 built-in components, and a mechanism whereby developers can create their own components. Visualforce uses the traditional model-view-controller (MVC) paradigm, with the option to use auto-generated controllers for database objects, providing simple and tight integration with the database. You can write your own controllers, or extensions to controllers, using Apex Code. Visualforce also provides AJAX components, and embeds the formula expression language for action, data and component binding interaction. A developer creates Visualforce pages by composing components, HTML, and optional styling elements on the platform. Just like HTML, Visualforce can integrate with any standard web technology or JavaScript framework to allow for a more animated and rich user interface. Each page is then accessible by a unique URL. When someone accesses a page, the server renders the page..


Page No.



Chapter 1: What is Visualforce?1

Chapter 2: What is Visualforce Page?.2

Chapter 3: Where Can Visualforce Pages Be Used?3

Chapter 4: How to create visualforce page?4

Chapter 5: Which Editions Support Visualforce?.5

Chapter 6: Which Permissions are Required for Visualforce Development?.6

Chapter 7: How is Visualforce Architected?6

Chapter 8: Tags of visualforce8

Chapter 9: What are the Benefits of Visualforce?9

Chapter 10: Controller in visualforce11




What is visualforce :-

Visualforce is a framework that allows developers to build sophisticated, custom user interfaces that can be hosted natively on platform. The Visualforce framework includes a tag-based markup language, similar to HTML, and a set of server-side standardcontrollers that make basic database operations, such as queries and saves, very simple to perform.In the Visualforce markup language, each Visualforce tag corresponds to a coarse or fine-grained user interface component, such as asection of a page, a related list, or a field. The behavior of Visualforce components can either be controlled by the same logic that is usedin standard Salesforce pages, or developers can associate their own logic with a controller class written in Apex.

Chapter-2 What is visualforce page

Developers can use Visualforce to create a Visualforce page definition. A page definition consists of two primary elements: Visualforce markup A Visualforce controller

Visualforce Markup :-Visualforce markup consists of Visualforce tags, HTML, JavaScript, or any other Web-enabled code embedded within a single tag. The markup defines the user interface components that should be included on the page, and the way they shouldappear.

Visualforce Controllers :-A Visualforce controller is a set of instructions that specify what happens when a user interacts with the components specified in associatedVisualforce markup, such as when a user clicks a button or link. Controllers also provide access to the data that should be displayed in apage, and can modify component behavior.


Where Can Visualforce Pages Be Used?

Developers can use Visualforce pages to Override standard buttons, such as the New button for accounts, or the Edit button for contactsor Override tab overview pages, such as the Accounts tab home page Define custom tabs Embed components in detail page layouts Create dashboard components or custom help pages Customize, extend, or integrate the sidebars in the Salesforce console (custom console components) Add menu items, actions, and mobile cards in Salesforce1


How to create visualforce page

Withdevelopment mode enabled, you can create your first Visualforce page by entering a URL for the page in your browser's address bar as follows: https://salesforce_instance/apex/pageName this give error message Because the page does not yet exist, you are directed to an intermediary page from which you can create your new page. ClickCreate Pageto create it automatically.


Which Editions Support Visualforce? Visualforce is available in Contact Manager Group Professional Enterprise Unlimited Performance, and Developer Editions.


Which Permissions are Required for Visualforce Development? Visualforce development requires various permissions, depending on the specific activity. User Permissions NeededTo enable Visualforce development mode: Customize ApplicationTo create, edit, or delete Visualforce pages: Customize ApplicationTo create and edit custom Visualforce components: Customize ApplicationTo edit custom Visualforce controllers or Apex Author ApexTo set Visualforce page security: Manage Profiles and Permission SetsTo set version settings for Visualforce pages: Customize ApplicationTo create, edit, or delete static resources: Customize ApplicationTo create Visualforce Tabs: Customize Application


How is Visualforce Architected? All Visualforce pages run entirely on the platform, both when a developer creates the page, and when an end user requests a page, as shown in the following architecture diagrams.

When a developer finishes writing a Visualforce page and saves it to the platform, the platform application server attempts to compile the markup into an abstract set of instructions that can be understood by the Visualforce renderer. If compilation generates errors, the save is aborted and the errors are returned to the developer. Otherwise, the instructions are saved to the metadata repository and sent to the Visualforce renderer. The renderer turns the instructions into HTML and then refreshes the developer's view, thereby providing instantaneous feedback to the developer for whatever changes were made in the markup.

The architecture diagram below shows the process flow when a non-developer user requests a Visualforce page. Because the page is already compiled into instructions, the application server simply retrieves the page from the