Create Visualforce Pages To Show The Sales Assessment On The Object Detail Screen

You can get to the assessment in ARPEDIO Sales via the object detail screen - see the example below. This guide tells you how to create a Visualforce page showing this assessment in the object detail screen.

What you need to do

  1. Create two Visualforce pages
  2. Assign the two new Visualforce pages to a permission set
  3. Include the two new Visualforce page in the layout of the object detail screen. This is explained in this guide.

Create two Visualforce pages

You create the first VisualForce page by selecting Setup -> Develop -> Visualforce pages. Click New.

  1. Enter ArpedioSalesBasic followed by the name of the object, all in one word, as both the label and the name for the Visualforce page.

2.  Replace the code below in the Visualforce Markup code and replace the two occurrences of the word Opportunity with the API name of the object:

<apex:page docType="html-5.0" cache="false" standardController="Opportunity">
    <arpedio:AssessmentBlockLayout owner="{!Opportunity}" />
</apex:page>

NB: if it is a custom object, Salesforce automatically has appended “_c” to the object type name, e.g. MyObjectName_c.

3.  Press Save.

In order to also create the assessment screen used in the mobile version (Salesforce1) you repeat the steps above, but enter "1" in the label and name: ARPEDIO1SalesBasic<ObjectName>; and mark the page as available for Salesforce mobile apps.

In addition the code to be entered in step 2 is:

<apex:page docType="html-5.0" cache="false" standardController="Opportunity">
    <arpedio:AssessmentMobileLayout owner="{!Opportunity}" />
</apex:page>

2. Assign the two new Visualforce pages to a permission set

Second, you need to assign the new Visualforce pages to the permission set ARPEDIOSales.

Go to Manage Users -> Permission Sets, and click on ARPEDIOSales in the list of permission sets.

Click on Visualforce Page Access.

 

Press Edit to add the new Visualforce pages to the permission set.

Locate the two new Visualforce pages (ARPEDIO.. and ARPEDIO1…) in the list to the left, and press the right arrow to add the two new pages to the permission set. Press Save.


Congratulations, now you have completed the changes to the permission set.


3. Include the new Visualforce page in the layout of the object detail screen.

This is explained in this guide 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk