See the following sections:
Visualforce Page Markup
After creating a Multi-Tabular Conga Grid℠, you may need to change the objects that appear in the tabs. This involves editing the Visualforce Page Markup. Follow these steps to access the markup code:
- In Salesforce®, click .
- Click and click .
- Locate the Multi-Tabular Visualforce page you want to edit, and click the link next to it.
- In the Visualforce Markup code, look for the list tags: <li>...</li>. These define the tab labels. Following the list tags are groups of division tags (<div>...</div>). Each division tag group corresponds to a specific tab label in the list tags above.
The division tags define what is underneath each tab.
Immediately above the beginning <div> tag is a grey-colored HTML comment that specifies the name of the tab.
Notice how each <CRMC_PP:Grid> tag has an objectName field. This should be the same for every tab since the Multi-Tabular related list pertains to a specific object (in this case, Opportunity). If the specified object name is incorrect, then the data in the Multi-Tabular list will be incorrect.
If you used the Multi-Tabular (Automatic) option to create a page layout, the object name will automatically populate in the Visualforce Markup code. If you used the Multi-Tabular (Manual) option to create a page layout using your own Visualforce Markup code, be sure to use the singular form of the object name (for example, Opportunity versus Opportunities). This pertains to standard Salesforce objects.
If the object you are creating a tab for is a custom object, then you need to find the API name for that object. To do this, go to Salesforce Setup, click and click . Find the object in this list and click the link next to it. Locate the field named object Name. Type that name exactly after the CRMC_PP:Grid ObjectName text.
Edit Tab Names
To edit a tab name, update both the list tag and its corresponding HTML comment (between the <!--- and ---> characters). For example:
To delete a tab, remove the associated list item (
<li>...</li>) containing the tag name. Then delete the entire division block (<div>...</div>) associated with that list. The following figure shows an example:
Add New Tabs
Each tab in the Multi-Tabular Visualforce page is based on a specific view. You can add more tabs (views) by following these steps:
Get the View ID
- Click .
- Select the object of interest (for example, Opportunity).
- Click the Manage Views screen appears. link. The
- Select the view that will be associated with the new tab.
- Click and click (with Record IDs).
- Open the exported record in a spreadsheet application, and note the value of the selected record. You will need this in a later step.
- Close the Manage Views screen.
Edit the Visualforce Markup
- Go to the Visualforce Markup code for the selected Multi-Tabular Visualforce page. Refer to steps 1 through 3 at the beginning of this topic.
- Decide where the tab should be located relative to other tabs.
- Insert a new list item (<li>...</li>) in the group of list tags in the appropriate order. This example shows adding a new tab labeled This Quarter as the third tab:
- Select any division block of text beginning with the <!--- comment characters and ending with the </div> tag. Copy this to your system clipboard (for example, Ctrl-C).
- Paste the block of code among the division tags in the order where you want the tab to appear. For example, we pasted the code from Step 3 after the second <div>...</div> group since the new tab will be third in order.
- Enter the new tab name in the grey HTML comment tag between the <!--- and ---> characters.
- Replace the Get the View ID).
value (between the double quotes) with the value that you recorded earlier (see
- Click at the top of the Visualforce page editor.
To see the result, click Save).(in the same row as