Questa informazione non è disponibile in italiano. Pertanto sarà visualizzata in inglese.
The component features activation of several customers for portatour®:
Pass Customers in the parameter FStandardSetController. Only instances from the type Account/Lead/Contact are supported. A maximum of 200 objects can be passed in this parameter.
Below is an example on the integration of a simple Visualforce page with respective Controller:
public with sharing class TestController {
public ApexPages.StandardSetController FAccountsController
{get;private set;}
public TestController() {
List<Account> myAccounts = [SELECT ID FROM Account limit 200];
FAccountsController =
new ApexPages.StandardSetController(myAccounts);
FAccountsController.setSelected(myAccounts);
}
}
<apex:page controller='TestController'>
<pt:ptmassactivation
FStandardSetController='{!FAccountsController}'
FRetURL='{!$CurrentPage.Parameters.retURL}'
rendered='{!!ISNULL(FAccountsController)}'
/>
</apex:page>