Creating Buttons and Modifying Page Layouts
To run a ClickLink rule, you create custom buttons that are displayed on an object's detail page, and list view buttons that are displayed on a list view.
To create the Visualforce pages and buttons that invoke it:
- Create Visualforce pages to create the records for your ClickLink rule.
Here is an example of a Visualforce page that processes a single record:
<apex:page standardController="pse__Vendor_Invoice__c" extensions="ffirule.IntegrationRuleEngine" action="{!convert}">
<ffirule:IntegrationRule engine="{!engine}"/>
</apex:page>Here is an example of a Visualforce page that processes records in a list view:
<apex:page standardController="pse__Vendor_Invoice__c" extensions="ffirule.IntegrationRuleEngine" action="{!convert}" recordSetVar="records">
<ffirule:IntegrationRule engine="{!engine}"/></apex:page> - In the master level ClickLink rule, create ClickLink buttons to access the Visualforce pages you created in the previous step. See Button Fields.
- In the source object, add custom buttons and links that use the Visualforce pages created earlier.
- Add the custom buttons and links you created in the previous step to the source object page layout and the search layout.