This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class RerenderNoAction { | |
public RerenderNoAction() { | |
viewMeCnt = 0; | |
} | |
public Integer viewMeCnt { get; set; } | |
public String parentOpt { get; set; } | |
public List<SelectOption> getParentOptions() { | |
List<SelectOption> opts = new List<SelectOption>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class RemotingController { | |
// Assumes two custom objects: Test_Object__c with lookup to Test_Object_2__c | |
@RemoteAction | |
global static void UpsertA(Test_Object__c obj1) { | |
upsert obj1.Test_Object_2__r; | |
obj1.Test_Object_2__c = obj1.Test_Object_2__r.Id; | |
upsert obj1; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class AnalyticsController{ | |
public List<SelectOption> availableReports { get; set; } | |
public Id reportId { get; set; } | |
public Map<String, List<SelectOption>> availableDataTypeFilterOperators { get; set; } | |
public List<ColumnFilter> availableColumnFilters { get; set; } | |
public AnalyticsController() { | |
availableReports = retrieveAvailableReports(); | |
availableDataTypeFilterOperators = retrieveAvailableDataTypeFilterOperators(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
(function() { | |
function handlePageLoad() { | |
var endpointMatcher = new RegExp("[\\?\\&]endpoint=([^&#]*)"); | |
document.getElementById('prechatForm').setAttribute('action', | |
decodeURIComponent(endpointMatcher.exec(document.location.search)[1])); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class BubbleChart2Controller{ | |
public String deafultFromDate { get; set; } | |
public String defaultThroughDate { get; set; } | |
private static final String REPORT_ID = '00Ox0000000hEzq'; | |
public BubbleChart2Controller() { | |
// Default to the current year. | |
// These instance variables are only used to | |
// populate the default values on the inputs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class AsyncReportController { | |
public List<SelectOption> availableReports { get; set; } | |
public Id reportId { get; set; } | |
public Id instanceId { get; set; } | |
public Boolean reportIsRunning { get; set; } | |
private transient Reports.ReportResults reportResults; | |
public AsyncReportController() { | |
availableReports = retrieveAvailableReports(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page > | |
<!-- download the jstree from jstree.com and upload the dist directory as a static resource --> | |
<link href="{!URLFOR($Resource.jsTree, 'themes/default/style.min.css')}" rel="stylesheet" /> | |
<script src="{!URLFOR($Resource.jsTree, 'libs/jquery.js')}"></script> | |
<script src="{!URLFOR($Resource.jsTree, 'jstree.min.js')}"></script> | |
<script src="{!URLFOR($Resource.jsTree, 'jstree.min.js')}"></script> | |
<!-- | |
Change the remoteObjectModel name="Account and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class JoinController { | |
// The from and through dates are hard-coded for simplicity's sake. | |
// Should change to parameters or input or something else. | |
public String getPageViewsJson() { | |
List<Page_View_Summary__c> pvs = [ | |
SELECT Date__c, Number_of_Views__c | |
FROM Page_View_Summary__c | |
WHERE Date__c >= 2014-04-01 | |
AND Date__c <= 2014-04-30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="jTableAccountsController"> | |
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css" /> | |
<link href="{!URLFOR($Resource.jtable, 'jtable/themes/jqueryui/jtable_jqueryui.min.css')}" rel="stylesheet" type="text/css" /> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"/> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"/> | |
<apex:includeScript value="{!URLFOR($Resource.jtable, 'jtable/jquery.jtable.min.js')}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class DescribeController { | |
public Graph theGraph { get; set; } | |
public List<SelectOption> nodeOptions { get; set; } | |
public String sourceNodeStr { get; set; } | |
public String destNodeStr { get; set; } | |
public transient List<GraphPath> paths { get; set; } | |
public transient String json { get; set; } |
OlderNewer