This file contains hidden or 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 > | |
<apex:canvasApp developerName="Webinar_Java_Demo"/> | |
</apex:page> |
This file contains hidden or 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> | |
<apex:enhancedList type="Account" height="300" rowsPerPage="10" id="AccountList" /> | |
</apex:page> |
This file contains hidden or 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 CheckingTheBoxesController { | |
public Map<Id, Boolean> selected {get; set;} | |
public List<Opportunity> opportunities {get; set;} | |
public Boolean forAll {get; set;} | |
public CheckingTheBoxesController() { | |
this.selected = new Map<Id, Boolean>(); | |
this.opportunities = new List<Opportunity>(); | |
This file contains hidden or 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
private Account getAccount() { | |
List<Account> accounts = [ | |
select | |
Id | |
,Name | |
from | |
Account | |
limit 1 | |
]; | |
This file contains hidden or 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
private Account getAccount() { | |
List<Account> accounts = [ | |
select | |
Id | |
,Name | |
from | |
Account | |
limit 1 | |
]; | |
This file contains hidden or 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 SearchController { | |
public List<Account> accounts {get; set;} | |
public SearchController() { | |
this.accounts = new List<Account>(); | |
} | |
public void doSearch() { | |
this.accounts = [select Id,Name from Account limit 200]; |
This file contains hidden or 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="CsvListSearchController" cache="true" contentType="text/csv#filename.csv" language="en-US"> | |
"Name","AccountNumber","Site","NumberOfEmployees" | |
<apex:repeat value="{!accounts}" var="item"> | |
"{!item.Name}","{!item.AccountNumber}","{!item.Site}","{!item.NumberOfEmployees}" | |
</apex:repeat> | |
</apex:page> |
This file contains hidden or 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 ErrorPopupController { | |
public Contact contact {get; set;} | |
public String errorMsg {get; set;} | |
public ErrorPopupController() { | |
this.contact = new Contact(); | |
this.errorMsg = 'bat'; | |
} | |
This file contains hidden or 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
/* Better styles for embedding GitHub Gists */ | |
.gist{font-size:13px;line-height:18px;margin-bottom:20px;width:100%} | |
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important} | |
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:13px !important} | |
.gist-meta a{color:#26a !important;text-decoration:none} | |
.gist-meta a:hover{color:#0e4071 !important} |