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
<!-- Google --> | |
<form method="GET" action="http://www.google.co.jp/search" target="_blank" > | |
<table><tr><td> | |
<a href="http://www.google.co.jp/"></a> | |
<input type=text name=q size=21 maxlength=255 value=""> | |
<input type=hidden name=ie value="UTF-8"> | |
<input type=hidden name=oe value="UTF-8"> | |
<input type=hidden name=hl value="ja"> | |
<input type=submit value="検索"> | |
</td></tr></table> |
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 showHeader="true" sidebar="false"> | |
<apex:includeScript value="{!$Resource.shortcut}" /> | |
<apex:form > | |
<apex:outputText value="Ctrl+Shift+X Click!!" /> | |
<br/> | |
<br/> | |
<apex:outputText value="Ctrl+Shift+Y Click!!" /> | |
<br/> | |
<br/> | |
<apex:outputText value="Ctrl+Shift+Z Click!!" /> |
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
<script type="text/javascript" src="/resource/shortcut"></script> | |
<script> | |
shortcut.add("Ctrl+Shift+1",function() { | |
window.open('/_ui/common/apex/debug/ApexCSIPage', null); | |
}); | |
shortcut.add("Ctrl+Shift+2",function() { | |
window.open('/setup/forcecomHomepage.apexp?setupid=ForceCom', null); | |
}); | |
shortcut.add("Ctrl+Shift+3",function() { | |
window.open('http://www.salesforce.com/us/developer/docs/pages/index.htm', null); |
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 UserCreateSample { | |
public UserCreateSample() { | |
} | |
public User getUser(Profile prmProfile, String prmEmail, Integer prmUserNo) { | |
// ユーザ | |
User user = new User(); | |
// 姓 |
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
<meta name="viewport" content="width=device-width, user-scalable=no"/> |
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 standardController="Account" showHeader="false" sidebar="false"> | |
<head> | |
<base target="_blank"/> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<script type="text/javascript" | |
src="https://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript"> | |
function initialize() { | |
// 緯度・経度取得 | |
var latlng = new google.maps.LatLng({!account.LatLngTt__c}); |
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
// コンテンツダウンロード | |
function openDownloadWindow(prmId) { | |
url = "/sfc/servlet.shepherd/version/download/" + prmId; | |
// ポップアップ表示メソッド呼び出し | |
window.open(url,'','width=700,height=500'); | |
return false; | |
} |
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
try { | |
/* INSERT等の処理 */ | |
} catch (DmlException e) { | |
/* Dml処理でのException処理をcatch | |
入力規則等でのエラーもcatchできる */ | |
} catch (Exception e) { | |
/* その他のExceptionエラーをcatch */ | |
} |