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 obj = 'PermissionSet'; | |
SObjectType r = ((SObject)(Type.forName('Schema.'+obj).newInstance())).getSObjectType(); | |
Map<String,Schema.SObjectField> fields = r.getDescribe().fields.getMap(); | |
for(String field : fields.keyset()){ | |
Integer padding = 50 - field.length(); | |
system.debug(fields.get(field) + '-'.repeat(padding) + fields.get(field).getDescribe().getLabel()); | |
} |
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
<aura:component implements="force:lightningQuickAction" > | |
<aura:attribute name="size" type="string" /> | |
<aura:html tag="style"> | |
.slds-modal__container { | |
min-width: {!v.size}; | |
} | |
</aura:html> | |
<lightning:button variant="brand" label="Make it big!" title="Make it big!" onclick="{! c.handleBiggly }"/> | |
<lightning:button variant="brand" label="Make it tiny!" title="Make it tiny!" onclick="{! c.handleSmally }"/> | |
</aura:component> |
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 finalArray = []; | |
var arrayPerms = Object.keys(permDependencies); | |
for(var i = 0; i < arrayPerms.length; i++){ | |
var currentPermissionLabel = document.getElementById(arrayPerms[i]).title; | |
var permissionDependent = []; | |
var currentDependency = permDependencies[arrayPerms[i]]; | |
for(var c = 0; c < currentDependency.length; c++){ | |
if(document.getElementById(currentDependency[c]) !== null && document.getElementById(currentDependency[c]).title !== undefined) |