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 showHeader="true" sidebar="false"> | |
<head> | |
<style> | |
.cssHeaderRow { | |
background-color: #2A94D6; | |
} | |
.cssTableRow { | |
background-color: #F0F1F2; | |
} | |
.cssOddTableRow { |
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
source 'https://rubygems.org' | |
ruby '2.2.2' (対象のRubyバージョン) | |
gem 'rails', '4.2.4' (対象のRailsバージョン) | |
gem 'bootstrap-sass', '~> 3.3.5' (Bootstrapが使える) | |
gem 'sprockets', '~> 3.3.3' (Railsで依存関係の管理やコンパイルなどをやってくれる) | |
(開発環境とテスト環境のみ対象) | |
group :development, :test do | |
gem 'sqlite3', '1.3.10' (sqlite3をインストール) |
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 class LeadProcessor implements Database.Batchable<sObject>, Database.Stateful { | |
/** | |
* コンストラクタ | |
*/ | |
public LeadProcessor() { | |
} | |
/** |
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="UrlClassDemoController" showHeader="true" sidebar="false"> | |
<!-- Begin Default Content REMOVE THIS --> | |
<h1>Congratulations</h1> | |
This is your new Page | |
<!-- End Default Content REMOVE THIS --> | |
</apex:page> |
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 class CalloutClass { | |
public static HttpResponse getInfoFromExternalService() { | |
HttpRequest req = new HttpRequest(); | |
req.setEndpoint('http://api.salesforce.com/foo/bar'); | |
req.setMethod('GET'); | |
Http h = new Http(); | |
HttpResponse res = h.send(req); | |
return res; | |
} |
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> | |
<base href="" > | |
<meta charset="utf-8"/> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="description" content="%%description%%"/> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | |
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
trigger BookTrigger on Book__c (after insert, after update) { | |
BookTriggerHandler handler = new BookTriggerHandler(); | |
if (Trigger.isBefore) { | |
// before trigger logic | |
} else if (Trigger.isAfter) { | |
if (Trigger.isInsert) { | |
// GoogleBooksAPIで書籍の情報を取得 | |
handler.setGoogleBooksInfo(Trigger.new); |
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
aura:waiting | |
<aura:handler event="aura:waiting" action="{!c.showSpinner}"/> | |
aura:valueInit | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
aura:valueDestroy | |
<aura:handler name="destroy" value="{!this}" action="{!c.handleDestroy}"/> | |
aura:valueChange |
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 SampleBatch implements Database.batchable<sObject>, Database.Stateful { | |
public Database.QueryLocator start(Database.BatchableContext BC) { | |
String query = ''; | |
query += ' SELECT '; | |
query += ' Id '; | |
query += ' FROM '; | |
query += ' Account '; | |
return Database.getQueryLocator(query); | |
} |
NewerOlder