Visualforce
Pages
Visualforce Pages
Agenda
What is Visualforce?
Salesforce Visualforce is a Model-View-Controller (MVC) framework or development tool which allows programmers to develop complex customized user interfaces hosted on the Lightning platform. Visualforce development tools divide the development processes across designers (to build designs or interfaces) and developers (create business logics).
Easy Development
All the changes performed by the developers can be viewed by them on the same window. It helps them to verify the output instantly and perform necessary actions (saves or updates). The editor of Visualforce is packed with various features (e.g. auto-completion and syntax highlighting) to make coding effective.
Easy Integration with Web-based UI Technologies
Visualforce markup finally rendered into HTML format, which allow designers to use Visualforce tags directly with codes (HTML, flash, JavaScript) that run within each HTML page on platforms like Lightning and Force.
Auto Upgradation
Whenever any other portion of the Lightning or Force platforms is upgraded then the users do not require to update Visualforce pages. In Visualforce case all the pages are saved as metadata which upgrade automatically with the rest of the system.
Hosted Platform
Visualforce pages are tightly integrated and show the same performance as standard Salesforce pages. Hence, they are rendered and complied completely by the Lightning platform.
Model-view-controller (MVC)
Architecture in Salesforce
It is a software pattern that separates information representation from user interaction. It divides the application into three manageable parts.
"Schema", generically, refers to the structure of the database. In Salesforce terms, that means the set of objects you have, the fields on those objects, and the relationships between them. You'll see this usage, for example, in the Schema Builder tool in Setup
Salesforce metadata
It is the configurations, code, automation logic, and page layouts that define how objects (and therefore records) behave – and also the “look and feel” of your Salesforce org.
Metadata is crucial for Salesforce development as it allows developers and administrators to define the behavior of the Salesforce application without writing code. Examples of Salesforce metadata include custom objects, fields, page layouts, workflows, validation rules, and more.
Visualforce Tags
Input tags
Output tags
Select tags
Form tags
page tags
action tags
Style tags
other
Many
Display account Related List
Show header of Cases
enhancedList tag in Visualforce Page
SectionHeader tag in Visualforce Page
RFG,MJNHGHHu8[7ui
2 aWn
What is Trigger ?
Considerations
“”Before Delete”” Event Example
`
Create EmailUtils Class for Sending Email
Create EmailUtils Class for Sending Email
Schedule Job
sObject is not allowed in future as an argument��sObject can change between the time you call the method and the time it executes. It may be possible that the argument will receive the older version and can overwrite them.
Mixed DML error :��This type of error occurs when we try to perform DML operation on setup and nonsetup objects in a single transaction
Exception Handling
Queries ?!
Thank You!