...
Section | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
To create a page that contains code for the Create Dial List button, perform the following steps:
- Go to the Administration Setup Page in Setup in Salesforce.
- On the left-hand side of the Salesforce window, in the App Setup section, expand Developthe Quick Find field, type 'Visualforce Pages'.
- In the expanded filtered list of items, click click Visualforce Pages. Visualforce Pages appears.
At the top of the list of Visualforce pages, click New.
sectionColumn width 60% A new Visualforce Page appears.
Column width 40% Type the following information:
sectionColumn width 60% columnField Description Example Label A label that identifies the page in Setup tools. Dial List From Custom Object Name The unique name that identifies the page in the API. The name must contain only alphanumeric characters. For further restrictions on field contents, click Help for this Page. DialListFromCustomObject Description An optional description of the page. Code for a button that creates a Dial List from selected entries in a List View. width 40% In Visualforce Markup, paste the following code, replacing 'My_Custom_Object__c' with the API Name for your object:
Sectioncode column theme width 60%Confluence <apex:page standardController="My_Custom_Object__c" recordSetVar="listRecs" extensions="
NVMConnectVCCConnect.ListFromListViewController"
> <NVMConnectlightningStylesheets="true"> <VCCConnect:ListFromListView dataSource="{!me}" /> </apex:page>
Column width 40% Click Save. Your newly created page appears.
You must now create a button to use the code. For information about adding a new button, see Creating a Create Dial List button for a standard object or Creating a Create Dial List button for a custom object.