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
({ | |
doInit : function(component, event, helper) { | |
helper.init(component, event); | |
}, | |
getAccounts : function(component, event, helper) { | |
helper.getAccounts(component, event); | |
} | |
}) |
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
.THIS .cell { | |
padding: 5px 5px 5px 5px; | |
} | |
.THIS .head { | |
padding: 5px 5px 5px 5px; | |
font-weight: bold; | |
} | |
.THIS.big { | |
font-size: 20px; | |
font-weight: bold; |
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 standardcontroller="Account" extensions="ChatterAccountSnapshotExt"> | |
<apex:form > | |
<apex:pageMessages /> | |
<apex:pageBlock title="Service Snapshot"> | |
<apex:pageBlockButtons location="bottom"> | |
<apex:commandButton value="Post to Feed" action="{!post}" /> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection columns="1"> | |
<apex:pageBlockSectionItem > | |
<apex:outputLabel value="Closed Cases" /> |
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 ChatterAccountSnapshotExt | |
{ | |
private Id accId; | |
public Boolean posted {get; set;} | |
public ChatterAccountSnapshotExt(ApexPages.StandardController std) | |
{ | |
accId=std.getId(); | |
posted=false; | |
} |
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 docType="html-5.0" applyHtmlTag="false" controller="LaunchpadController" showHeader="false" sidebar="false" standardStyleSheets="false"> | |
<head> | |
<title>Swipe Demo App</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"></meta> | |
<!-- JQuery Mobile --> | |
<apex:includeScript value="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"/> | |
<apex:styleSheet value="https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> | |
<apex:includeScript value="https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.3.1/jquery.mobile-1.3.1.min.js"/> | |
</head> |
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 standardController="Lead"> | |
<style> | |
.fieldempty | |
{ | |
background-color: yellow; | |
} | |
.fieldpopulated | |
{ | |
background-color: white; |
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 > | |
<script type="text/javascript"> | |
var __sfdcSessionId = '{!GETSESSIONID()}'; | |
</script> | |
<script src="../../soap/ajax/29.0/connection.js" | |
type="text/javascript"></script> | |
<script type="text/javascript"> | |
function getUserInfo() | |
{ |
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 StreamingController | |
{ | |
public String getTopic() | |
{ | |
String result=''; | |
List<PushTopic> topics=[select id, Name from PushTopic where Name='Cases']; | |
if (0!=topics.size()) | |
{ | |
result='Cases'; |
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="StreamingController"> | |
<apex:pageMessages id="msgs" /> | |
<apex:outputPanel id="all"> | |
<apex:outputPanel rendered="{!topic==''}"> | |
<apex:form > | |
<apex:actionFunction name="createTopic" action="{!CreateTopic}" rerender="all, msgs" /> | |
<script> | |
alert('Creating topic - create topic function = ' + createTopic); | |
createTopic(); | |
</script> |
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
({ | |
init : function(cmp, ev) { | |
var action = cmp.get("c.GetAccountNames"); | |
action.setCallback(this, function(response) { | |
var state = response.getState(); | |
if (state === "SUCCESS") { | |
var accs=response.getReturnValue() | |
var wrappers=new Array(); | |
for (var idx=0; idx<accs.length; idx++) { |