Skip to content

Instantly share code, notes, and snippets.

<apex:page showHeader="true" sidebar="true" docType="html-5.0" standardStylesheets="true" applyBodyTag="true" standardController="Opportunity" extensions="ChannelRelationshipController">
<html ng-app="ResellerDistributor" lang="en">
<head>
<title>Reseller Distributor Channel</title>
<!--<link href="{!URLFOR($Resource.Angular_Bootstrap,'Angular_Bootstrap/Bootstrap/BootsWatchThemes/sandstone/bootstrap.min.css')}" rel="stylesheet"/> -->
<link href="{!URLFOR($Resource.Angular_Bootstrap,'Angular_Bootstrap/AngularJs/css/ng-table.min.css')}" rel="stylesheet"/>
<apex:includeScript value="{!URLFOR($Resource.Angular_Bootstrap, 'Angular_Bootstrap/Jquery/external/jquery/jquery.js')}"/>
<!--<apex:includeScript value="{!URLFOR($Resource.Angular_Bootstrap, 'Angular_Bootstrap/Bootstrap/js/bootstrap.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.Angular_Bootstrap, 'Angular_Bootstrap/Bootbox/bootbox.js')}"/>-->
public class ChannelRelationshipController{
//Attributes
public Id opporunityId {get;set;}
public String retUrl {get;set;}
public String partnerDistributorIds {get;set;}
public boolean saveandAddproducts{get;set;}
//Constructors
public ChannelRelationshipController(ApexPages.StandardController con) {
public class AggregateStateInfo
{
@InvocableMethod
//Method that accepts the Account ID
{
// Find all related Location_Information__c records and store the State__c value in a collection variable
// Make sure the values are not duplicates
// Update a custom field on Account (Aggregated_State_Info__c [Text type]) with the de-duplicated States separated by a comma
}
}