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:component controller="InputFieldComponentController" id="component"> | |
<apex:actionFunction name="prmClearBtn" action="{!doClear}" reRender="block" /> | |
<apex:pageBlock id="block"> | |
<apex:pageBlockButtons id="blockButtons"> | |
<apex:commandButton value="CLEAR" onclick="return onClickBtn();" /> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection id="section"> | |
<apex:pageBlockSectionitem id="sectionItem"> | |
<apex:outputLabel value="INPUT" for="inputFieldVal" /> |
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"> | |
<apex:includeScript value="https://code.jquery.com/jquery-2.1.1.min.js" /> | |
<apex:includeScript value="{!$Resource.PrettyEmbedJs}" /> | |
<div id="vf-page"> | |
<apex:form id="form"> | |
<div id="my-video-display" ></div> | |
</apex:form> | |
</div> |
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 AccountMainController { | |
public AccountMainController() { | |
List<AccountSubController.Wrapper> wrapper = new List<AccountSubController.Wrapper>(); | |
} | |
} |
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
String key = '株式会社 セールスフォース%ドットコム'; | |
String query = 'SELECT Name FROM Account WHERE Name LIKE ' + '\'' + String.escapeSingleQuotes(key + '%') + '\''; | |
System.debug(query); | |
List<Account> accounts = database.query(query); | |
for (Account a : accounts) { | |
System.debug(a.Name); | |
} | |
System.debug(accounts.size()); |
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
String key = 'あいう%'; | |
key = key.replace('%', '\\%'); | |
key = key + '%'; | |
String query = 'SELECT Name FROM Account WHERE Name LIKE: key '; | |
List<Account> results = database.query(query); | |
for (Account a : results) { | |
System.debug(a.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
SUBSTITUTE(SUBSTITUTE(FullName__c, ' ', ''), ' ', '') |
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="LikeSearchController"> | |
<apex:form id="form"> | |
<apex:pageBlock > | |
<apex:pageBlockButtons location="bottom"> | |
<apex:commandButton value=" Search " action="{!doSearch}" reRender="form" /> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection columns="1"> | |
<apex:inputText value="{!key}" label="{!$ObjectType.Account.Fields.Name.Label}" style="width: 200px;" /> | |
<apex:pageBlockTable value="{!accounts}" var="item"> | |
<apex:column headerValue="{!$ObjectType.Account.Fields.Name.Label}"> |
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"> | |
<div id="vf-page"> | |
<h1>Congratulations</h1> | |
This is your new Page | |
</div> | |
<script type="text/javascript"> | |
var prmId = '{!$CurrentPage.parameters.id}'; | |
var prmKey = '{!$CurrentPage.parameters.key}'; | |
console.log('id = ' + prmId); | |
console.log('key = ' + prmKey); |
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" id="page"> | |
<apex:includeScript value="//code.jquery.com/jquery-2.1.1.min.js" /> | |
<apex:includeScript value="//cdnjs.cloudflare.com/ajax/libs/jsforce/1.2.0/jsforce.min.js" /> | |
<div id="vf-page"> | |
<apex:form id="form"> | |
<h1>最近参照したレポートリスト</h1> | |
<ul id="reportList"></ul> | |
</apex:form> | |
</div> |
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="OpportunityDateSearchController" showHeader="true" sidebar="false" docType="html-5.0" tabStyle="Opportunity" id="page"> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" /> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js" /> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/i18n/jquery.ui.datepicker-ja.js" /> | |
<apex:styleSheet value="https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css" /> | |
<apex:include pageName="OpportunityDateSearchCss" /> | |
<div id="vf-page"> | |
<apex:sectionHeader title="{!$Label.Forcedotcom}" subTitle="{!$Label.Opportunity_Search}" /> |