Section | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
To create an Activities tab that displays all task records, perform the following tasks:
- Create a Visualforce page that displays Activities:
- Go to Visualforce Pages within Setup in Salesforce.
- On the left-hand side of the Salesforce window, in the Build section, expand Develop.
- In the expanded list of items, click Pages. Visualforce Pages appears.
At the top of the list of Visualforce pages, click New.
Section Column width 60% A new Visualforce Page appears.
Column width 40% Type the following information.
Section Column width 60% Field Description Example Label A label that identifies the page in Setup tools. Activities 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. Activities Description An optional description of the page. A page that displays Activities on the Activities tab Column width 40% In the Visual Markup section, paste the following code:
<apex:page >
<apex:enhancedList type="Activity" height="600" />
</apex:page>- Click Save. The page is saved.
- Create a custom tab that uses the Visualforce page:
- Go to the Tabs within Setup in Salesforce.
- On the left-hand side of the Salesforce window, in the App Setup or Build section, expand Create.
- In the expanded list of items, click Tabs. Custom Tabs appears.
- In the Visualforce Tabs section click New. Step 1. Enter the Details appears.
Provide the following information:
Field Description Visualforce Page The Visualforce page to display in the tab. Select Activities [Activities]. Tab Label The text that appears in the tab label. Type the tab label text.
For example, Activities.Tab Name A unique name for the tab automatically generated when you type in the Tab Label field. Tab Style The color and image that the tab uses. Click Next. Step 2. Add to Profiles appears.
- Choose the user profiles for which the new tab is available. Click Next. Step 3. Add to Custom Apps appears.
- Choose the custom apps for which the new custom tab is available. Click Save. Your new tab is saved and appears in the list of Visualforce Tabs on Custom Tabs.
...