Skip to content

Instantly share code, notes, and snippets.

Taiki Yoshikawa tyoshikawa1106

Block or report user

Report or block tyoshikawa1106

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tyoshikawa1106
tyoshikawa1106 / LDS_ImageView.page
Last active Aug 26, 2015
Visualforceページ開発のLightning Design System 画像表示
View LDS_ImageView.page
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<title>Salesforce Lightning Design System Trailhead Module</title>
<apex:stylesheet value="{!URLFOR($Resource.SLDS080, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
</head>
<body>
<div class="slds">
<span class="slds-avatar slds-avatar--x-small">
<img src="{!URLFOR($Resource.SLDS080, '/assets/images/avatar1.jpg')}" alt="meaningful text" />
View TabbendSample.page
<div class="tabbed-list-view-nav">
<a href="#" class="span-25 on">Tab1</a>
<a href="#" class="span-25">Tab2</a>
<a href="#" class="span-25">Tab3</a>
<a href="#" class="span-25">Tab4</a>
<div id="tabbed-list-view-nav-arrow" class="tabbed-list-view-nav-arrow">&nbsp;</div>
</div>
<ul class="tabbed-list-view">
<li>
@tyoshikawa1106
tyoshikawa1106 / 01_RemoteActionReRender.page
Created Feb 6, 2014
@remoteactionとreRenderでエラーが発生する条件の検証
View 01_RemoteActionReRender.page
<apex:page controller="RemoteActionReRenderController" showHeader="true" sidebar="false" >
<body>
<apex:form id="form">
<apex:commandButton value=" Go!! " action="{!doClick}" reRender="form"/>
<c:RemoteActionReRender rendered="{!isComponentView}"/>
</apex:form>
<script>
function getAccount() {
try {
{!$RemoteAction.RemoteActionReRenderController.getAccount}(function(results, event){
@tyoshikawa1106
tyoshikawa1106 / include.html
Created Feb 13, 2014
Bootstrapなどを外部から読み込む方法のメモ
View include.html
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/css/bootstrap.min.css"></link>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.10/angular.min.js"></script>
@tyoshikawa1106
tyoshikawa1106 / JSforceSample
Created Feb 18, 2014
JSforceでクエリ実行
View JSforceSample
<apex:page >
<apex:includeScript value="{!$Resource.JSforce}" />
<apex:form >
<apex:commandButton value=" Go!! " onclick="return doClick();" />
</apex:form>
<script>
var conn = new jsforce.Connection({ accessToken: '{!$Api.Session_Id}' });
function doClick() {
var soqlQuery = 'SELECT Id, Name FROM Account';
conn.query(soqlQuery, function(err, res) {
@tyoshikawa1106
tyoshikawa1106 / contentVersion.cls
Last active Aug 29, 2015
ContentVersionテストデータ作成
View contentVersion.cls
ContentVersion contentVersion = new ContentVersion(
Title = 'TEST'
,Description = 'TEST'
,PathOnClient = 'myString'
,VersionData = Blob.valueof('myString')
,FirstPublishLocationId = parentId
);
insert contentVersion;
@tyoshikawa1106
tyoshikawa1106 / CheckjTriggerError.cls
Created Feb 22, 2014
Apexトリガーで使えるエラー判定
View CheckjTriggerError.cls
// Update処理
List<Database.Saveresult> results = Database.Update(accounts, false);
// Errorレコード判定
Integer i = 0;
for (Database.SaveResult sr : results) {
if(!sr.isSuccess()) {
Database.Error err = sr.getErrors()[0];
contactMap.get(accounts[i].Id).addError(
err.getMessage()
@tyoshikawa1106
tyoshikawa1106 / AngularJsSearch.page
Last active Aug 29, 2015
VisualforceページでAngularJSをつかった検索
View AngularJsSearch.page
<apex:page showHeader="true" sidebar="false">
<apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js" />
<apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.10/angular.min.js"/>
<c:RemoteTK />
<style type="text/css">
#vf-page .webparkList input {
background-color: transparent;
border-style: none;
@tyoshikawa1106
tyoshikawa1106 / JSforceSearch.page
Created Feb 23, 2014
JSforceをつかったVisualforceページの検索画面
View JSforceSearch.page
<apex:page showHeader="true" sidebar="false">
<apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js" />
<apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.10/angular.min.js"/>
<apex:includeScript value="{!$Resource.JSforce}" />
<style type="text/css">
#vf-page .webparkList input {
background-color: transparent;
border-style: none;
View 00_VisualStrapDemo.page
<apex:page docType="html-5.0" showHeader="true" sidebar="false">
<vs:importVisualStrap theme="default" />
<vs:visualStrapBlock >
<!--All the Visualstrap content and Visualforce content here -->
</vs:visualStrapBlock >
</apex:page>
You can’t perform that action at this time.