background preloader

Visualforce

Facebook Twitter

Visualforce on Community - Developer Boards - Force.com Discussion Boards. Www.salesforce.com/us/developer/docs/pages/salesforce_pages_developers_guide.pdf. Visualforce DynamicEditPage. Getting the highest user adoption typically depends on the simplicity and minimality of the interface presented to your users.

Visualforce DynamicEditPage

One way to increase the simplicity is to make various elements of an interface dependent on data conditions both for their visibility and state. In this example we explore the use of a Visualforce component that augments or decorates another component giving it some AJAX behavior for the purpose of controlling the visibility of a section of the given Visualforce page dynamically as the user modifies values in a form. The scenario behind this example is to capture specific information about the circumstances around losing a sales deal (an Opportunity object).

During normal progression of a deal there is no reason to show a field called "Reason Lost". Only at the time the user moves the stage to "Closed Lost" should they see this field and the section in which it is contained. About this Example Model The model is the schema or data interface for the application. TehNrd. Display Picture in Contact. What if I want to display my image on contact, and I frequently change it also.

Display Picture in Contact

The answer in general is, create a visualforce page page and override it to native contact detail page.This doesn't sounds good to me, am not happy overriding native pages provided by Salesforce. So I finally decided to put my head together and think how I can do this in another way.Idea came in mind that what if I use Notes and Attachments on Contact object. Yes! I have uploaded some of my pictures in Notes and Attachment and provided a button on detail page to select one of them. When you click on the "Set Profile Picture" a pop up gets open where all valid images are shown with radio option as shown in above screen. How can you implement this?? Make sure you copy all Labels, Names etc correctly.1) Create field of Type : "Text" with Field Label : "StoreImageUrl" and Field Name : "StoreImageUrl" (Lenght - 255) -> Make it visible to all profiles but do not show this on any page layout.

IF( StoreImageUrl__c ! Using Field Set on Visual Force Page. This is about how we can use Field Set.

Using Field Set on Visual Force Page

We can dynamically bind fields on our visual force page using Field Set. It is very useful when we are working with managed package. A field set is a grouping of fields. For example we can have a field set that contains fields "Name , Email , Phone , Mobile". If the page is added to a managed package, administrator can add, remove, or reorder fields in a field set to modify the fields presented on visual force page without modifying any code. Creating Visualforce Tabs. An Introduction to Visualforce. Visualforce is the component-based user interface framework for the Force.com platform.

An Introduction to Visualforce

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. Community - Override Custom Object Tab with Visualforce Page H... - Force.com Discussion Boards. Force.com Tutorial: An Introduction to Visualforce. Visualforce is the component-based user interface framework for the Force.com platform.

Force.com Tutorial: An Introduction to Visualforce

The framework includes a tag-based markup language, similar to HTML. Selecting Records with a Visualforce Custom List Controller - Force.com Cookbook. Problem.

Selecting Records with a Visualforce Custom List Controller - Force.com Cookbook

Global Variables. Visualforce Tutorial. User Interface. Navigation: Developer Force | Visualforce (User Interface) Every Force.com app has a standard user interface with one or more page layouts that correspond to the app's objects.

User Interface

But sometimes, you need to develop an app with a completely unique user interface. Visualforce is a Web-based framework that lets you quickly develop sophisticated, custom UIs for Force.com desktop and mobile apps. Using native Visualforce markup and standard Web development technologies such as HTML5, CSS, JavaScript, and jQuery, you can rapidly build rich UIs for any app. How to Create Custom Related-List on Visualforce Pages. In the past few weeks in many cases I came across the requirement to add a custom list to the Object's detail page.

How to Create Custom Related-List on Visualforce Pages

The list should be just like related-lists such as "Open Activities" or "Google Docs, Notes, & Attachments", however it is suppose to view a list of data which is somehow relevant to the object but not necessarily from an object directly related to the current object's page. Let's consider this example, imagine we need to view a list of opportunities related to a Contact through it's Account relationship (not the ones that are directly linked to the Contact). This is to say that if Contact A is linked to Account X and Account X has 5 opportunities linked to it, by viewing Contact A's details we would be able to view those opportunities as well. Ok, now action, in order to do this we will need to create a new Visualforce Page and Controller extension.