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" showHeader="true" sidebar="false" id="page"> | |
<apex:include pageName="SearchCss"/> | |
<apex:form id="form"> | |
<apex:pageBlock > | |
<apex:pageBlockButtons location="bottom"> | |
<apex:commandButton value=" 検索 " /> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection columns="1"> | |
<apex:panelGrid columns="2"> | |
<apex:outputText value="{!$ObjectType.Account.fields.Name.Label}" styleClass="labelCol" /> |
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 Sample2Controller { | |
public Boolean isException {get; set;} | |
public Sample2Controller() { | |
try { | |
Id i = 'xxx'; | |
} catch (Exception e) { | |
this.isException = true; | |
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Exception Error')); |
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 with sharing class ChildRemoteController { | |
@RemoteAction | |
global static String sayHello(String helloTo) { | |
return 'Hello ' + helloTo + ' from the Grandparent.'; | |
} | |
@RemoteAction | |
global static List<sObject> queryData(String query){ | |
return Database.query(query); | |
} |
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
@isTest | |
private class DataUtilTest { | |
static testMethod void myUnitTest() { | |
List<sObject> accountsList = Test.loadData(Account.sObjectType, 'AccountsTest'); | |
System.assertEquals(accountsList.size(), 1); | |
List<Account> accounts = [select Id,Name,Type,AccountNumber,Rating,Site | |
from Account where Id IN: accountsList limit 200]; | |
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="AutoRubySampleController" id="page"> | |
<apex:includeScript value="{!$Resource.KanaTextExtension}"/> | |
<script> | |
kntxtext.target.push([ 'name1', 'ruby1', kntxtext.constant.letterType.kana, kntxtext.constant.insertType.auto ]); | |
</script> | |
<apex:form id="form"> | |
<apex:pageBlock title="フリガナ自動挿入" id="block"> | |
<apex:pageBlockSection columns="1" id="section"> | |
<apex:pageBlockSectionItem id="inutSectionItem"> | |
<apex:outputText value="名前" id="inputLabel"/> |
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="SelectRadioController" id="page"> | |
<apex:form id="form"> | |
<apex:pageMessages /> | |
<apex:pageBlock > | |
<apex:pageBlockButtons > | |
<apex:commandButton value="Click!!" action="{!doClick}" rerender="form"/> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection columns="1"> | |
<apex:pageBlockSectionItem > | |
<apex:outputText value="Radio" /> |
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="FutureAnnotationDemoController" id="page"> | |
<apex:form id="form"> | |
<apex:commandButton value="Click!!" action="{!doClick}" reRender="form" /> | |
</apex:form> | |
</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
trigger UpdateObjectTrigger on UpdateObject__c (before update, after update) { | |
if (Trigger.isBefore) { | |
System.debug('isBefore'); | |
} else if (Trigger.isAfter) { | |
System.debug('isAfter'); | |
} | |
} |
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 id="page"> | |
<apex:form id="form"> | |
<apex:outputText value="{!$Label.Message}" escape="false" /> | |
</apex:form> | |
</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
<apex:page controller="ComparableDemoController" showHeader="true" sidebar="false" id="page"> | |
<apex:form id="form"> | |
<apex:pageBlock > | |
<apex:pageBlockSection columns="1"> | |
<apex:pageBlockTable value="{!comparableAccounts}" var="item"> | |
<apex:column headerValue="{!$ObjectType.Account.Fields.Name.Label}"> | |
<apex:outputText value="{!item.account.Name}" /> | |
</apex:column> | |
<apex:column headerValue="{!$ObjectType.Account.Fields.AccountNumber.Label}"> | |
<apex:outputText value="{!item.account.AccountNumber}" /> |