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 List<Folder> getFolders(Set<String> folderDeveloperNames) { | |
return [ | |
select | |
Id | |
,DeveloperName | |
from | |
Folder | |
where | |
DeveloperName IN: folderDeveloperNames | |
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 List<Report> getReports(Set<Id> folderIds) { | |
return [ | |
select | |
Id | |
,Name | |
from | |
Report | |
where | |
OwnerId IN: folderIds | |
]; |
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="DynamicAccountFieldsLister"> | |
<apex:pageMessages /><br/> | |
<apex:form > | |
<apex:pageBlock title="Edit Account" mode="edit"> | |
<apex:pageBlockSection columns="1"> | |
<apex:inputField value="{!Account.Name}"/> | |
<apex:repeat value="{!editableFields}" var="f"> | |
<apex:inputField value="{!Account[f]}"/> | |
</apex:repeat> | |
</apex:pageBlockSection> |
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 ActionFunctionVerificationController { | |
public Account account {get; set;} | |
public ActionFunctionVerificationController(ApexPages.StandardController stdController) { | |
this.account = new Account(); | |
} | |
public void doClick() { | |
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.INFO, this.account.Name)); |
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
if(confirm("よろしいですか?")) doClickBtn(); |
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 virtual with sharing class CheckBaseController { | |
public CheckBaseController() { | |
System.debug('◆◆◆◆CheckBaseController:START'); | |
System.debug('◆◆継承クラス・コンストラクタ'); | |
System.debug('◆◆◆◆CheckBaseController:END'); | |
} | |
} |
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 SelectRadioController { | |
public String radio {get;set;} | |
public Integer result {get; set;} | |
public SelectRadioController() { | |
this.radio = ''; | |
this.result = null; | |
} | |
public void doClick() { |
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="false" sidebar="false" cache="true" contenttype="application/vnd.ms-excel; #extract.xls;" > | |
<head> | |
<style type="text/css"> | |
.col1 {width:200px;background-color: #99cc00;} | |
.col2 {width:50px;background-color: #99cc00;} | |
.col3 {width:700px;background-color: #99cc00;} | |
</style> | |
</head> | |
<body> | |
<table border="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 class SystemDebugController { | |
public SystemDebugController() { | |
System.debug('◆◆◆◆SystemDebugController:START'); | |
System.debug('◆◆getScriptStatements = ' + Limits.getScriptStatements()); | |
System.debug('◆◆getCpuTime = ' + Limits.getCpuTime()); | |
System.debug('◆◆◆◆SystemDebugController:END'); | |
} |