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
| ProcessInstance p = [ | |
| SELECT | |
| Id | |
| ,CompletedDate | |
| ,LastActorId | |
| ,ProcessDefinitionId | |
| ,Status | |
| ,TargetObjectId | |
| ,(SELECT Id,ActorId,Comments,IsPending,OriginalActorId,ProcessInstanceId,ProcessNodeId,StepStatus,TargetObjectId FROM StepsAndWorkitems) | |
| FROM |
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
| <aura:component implements="flexipage:availableForAllPageTypes,force:appHostable"> | |
| <forceChatter:fullFeed /> | |
| </aura:component> |
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 standardStylesheets="false" showHeader="false" applyHtmlTag="false" applyBodyTag="false"> | |
| <head> | |
| <!-- meta --> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <!-- lightning desin system --> | |
| <apex:stylesheet value="{!URLFOR($Resource.SLDS0122, 'assets/styles/salesforce-lightning-design-system.css')}" /> | |
| </head> | |
| <body> | |
| <!-- main --> | |
| <div class="slds-m-around--medium"> |
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 > | |
| <script type="text/javascript"> | |
| (function(){ | |
| beenFocused = true; | |
| ////var maxStringSize = 6000000; // Maximum String size is 6,000,000 characters | |
| var MAX_FILE_SIZE = 1000000; // After Base64 Encoding, this is the max file size [Check! 1MB!] | |
| var MAX_FILE_CNT = 2; // Upload File Count | |
| var CHUNK_SIZE = 950000; // Maximum Javascript Remoting message size is 1,000,000 characters |
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
| // ひとつ目のPromise | |
| function getPromiseA() { | |
| var deferred = $q.defer(); | |
| console.log('getPromiseA'); | |
| setTimeout( | |
| function() { | |
| var resolveObj; | |
| // 処理の成功を示す promise.then() の successCallback をコール ( 引数オブジェクトを渡せる ) | |
| console.log('getPromiseA resolve'); | |
| deferred.resolve(resolveObj); |
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 > | |
| <script type="text/javascript"> | |
| (function(){ | |
| beenFocused = true; | |
| var maxStringSize = 6000000; //Maximum String size is 6,000,000 characters | |
| var maxFileSize = 4350000; //After Base64 Encoding, this is the max file size | |
| var chunkSize = 950000; //Maximum Javascript Remoting message size is 1,000,000 characters | |
| var app = angular.module('myApp', ['ngMessages']); |
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" extensions="JSRemotingFileUploadController" sidebar="false" id="page"> | |
| <head> | |
| <apex:includeScript value="https://code.jquery.com/jquery-2.1.4.min.js" /> | |
| <apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.min.js" /> | |
| <apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular-animate.min.js" /> | |
| <apex:includeScript value="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js" /> | |
| </head> | |
| <body> | |
| <div id="vf-page"> | |
| <apex:form id="form"> |
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
| @isTest | |
| private class TestLoadDataSampleTest { | |
| private static User testAdminUser = new User(Id = UserInfo.getUserId()); | |
| /** | |
| * Check Account Test Data | |
| */ | |
| static testMethod void checkTestLoadAccounts() { | |
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
| // 標準オブジェクト | |
| SELECT Id,Field,IsDeleted,AccountId,NewValue,OldValue FROM AccountHistory | |
| // カスタムオブジェクト | |
| SELECT Id,Field,IsDeleted,NewValue,OldValue FROM My_Work__History |
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
| String myJson = '[' + '\"' + account.Id + '\"' + ']'; | |
| List<Object> jsonDelYomiIdList = (List<Object>) JSON.deserializeUntyped(myJson); |