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 AccountTrigger on Account (after update) { | |
private AccountTriggerHandler handler = new AccountTriggerHandler(); | |
if (Trigger.isAfter) { | |
if (Trigger.isUpdate) { | |
handler.doUnlock(Trigger.new, Trigger.oldMap); | |
} | |
} | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Map</title> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="vendor/SLDS092/assets/styles/salesforce-lightning-design-system.min.css"></link> | |
<style> | |
html, body { | |
height: 100%; |
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
Account acct = [SELECT Id from Account WHERE ID = '001B0000003nOuy' LIMIT 1]; | |
Approval.UnLockResult result = Approval.unlock(acct, false); |
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:form> | |
<apex:pageBlock mode="edit" id="block"> | |
<apex:pageBlockSection title="ApexTable" columns="1"> | |
<apex:inputField value="{!Account.MultiPicklistField__c}" onchange="return changePick();" id="pickFields"/> | |
<script> | |
function changePick() { | |
var options = document.getElementById('{!$Component.pickFields}').options; | |
for(var i = 0; i < options.length; i++){ | |
console.log(options[i].value + ' : ' + options[i].selected); |
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
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
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
{ | |
"name": "angular", | |
"version": "0.0.0", | |
"private": true, | |
"scripts": { | |
"start": "node app.js" | |
}, | |
"dependencies": { | |
"express": "~4.13.1", | |
"mongoose": "4.1.10", |
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
var express = require('express'); | |
var routes = require('./routes'); | |
var user = require('./routes/users'); | |
var http = require('http'); | |
var path = require('path'); | |
var app = express(); | |
// all environments | |
app.set('port', process.env.PORT || 8080); |
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
<%= link_to 'Edit', '#', { :onclick => "return EventItemJs.openEditEventModal(#{event.id});" } %> |
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
EventItemJs = (function() { | |
"use strict"; | |
function EventItemJs() {} | |
EventItemJs.openEditEventModal = function(eventId) { | |
$('#edit-event-modal-' + eventId).removeClass("slds-hide"); | |
$('#edit-event-modal-' + eventId).addClass("slds-show"); | |
return false; | |
} |
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
// オブジェクト情報 | |
System.debug(Schema.getGlobalDescribe().get('Account').getDescribe()); | |
// オブジェクトの項目情報 | |
Map<String, Schema.SObjectType> m = Schema.getGlobalDescribe() ; | |
Schema.SObjectType s = m.get('Account') ; | |
Schema.DescribeSObjectResult r = s.getDescribe() ; | |
Map<String, Schema.SObjectField> fields = r.fields.getMap() ; | |
for (String f : fields.KeySet()) { | |
System.debug(f); |