To configure the Cart Approvals page and Apex class
You must finish configuring the other objects before the feature will work as expected.
Approvals for Salesforce
list_alt
/**
* Apttus CPQ Approval
* CartViewController
*
* @2012-2013 Apttus Inc. All rights reserved.
*/
public with sharing class CartViewController {
// context id
private ID contextId = null;
// approval type
private String approvalType = null;
/**
* Class Constructor
* @param stdController the standard controller
*/
public CartViewController(ApexPages.StandardController stdController) {
// get context id
contextId = stdController.getId();
// get default approval context type
//approvalType = SystemUtil.getDefaultApprovalCtxType();
approvalType = 'cart';
}
/**
* Gets context object Id
*/
public ID getCtxObjectId() {
return contextId;
}
/**
* Gets cart approval context type
*/
public String getCtxApprovalType() {
return approvalType;
}
}
<apex:page standardController="Apttus_Proposal__Proposal__c"
extensions="CartViewController">
<apex:form >
<apex:pageMessages id="errorPage" />
<apex:outputPanel id="idApprovalContextPanel">
<Apttus_CQApprov:ApprovalContextView contexSOId="{!ctxObjectId}"
contextApprovalType="{!ctxApprovalType}"/>
</apex:outputPanel>
</apex:form>
</apex:page>
You must finish configuring the other objects before the feature will work as expected.