• Salesforce Dreamer
  • NEWBIE
  • 0 Points
  • Member since 2019
  • Salesforce Architect
  • Healthcare

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi experts,
I am curious to know if you have come across the below scenario in your implementation.
I have a managed release package (PKG-A) which has the below items:
  1. LEX Component - A
  2. Apex Class - A
  3. Permission set - XYZ [0PS31000000Np44] (Account sObject read access => true)
I install PKG-A in Production org and perform the below operation:
My above LEX component - A has a button that calls the Apex class - A (AuraEnabled method) which runs the below to modify Permission set - XYZ create access to true:
String parameterValue = '0PS31000000Np44'; 
PermissionSet ps =[select id,ProfileId,SystemModstamp,UserLicenseId FROM PermissionSet where id=: parameterValue]; 
ObjectPermissions op = new ObjectPermissions(); 
op.parentid = ps.id; 
op.SobjectType = 'Account'; 
op.PermissionsCreate = true; 
op.PermissionsRead = true; 
op.PermissionsEdit = false; 
insert op;

Now, my question is will the above functionality work?
Thanks for all your support in advance.
I'd like to add SLDS padding for a minimum width value of an input field. Have the padding set in my code, I just need it to only display when the width of the screen is larger than 760px

Cmp
<div class="minimumWidth">
      <lightning:input class=" slds-size_1-of-1 slds-medium-size--1-of-2 slds-large-size--1-of-2 "
       name="field1" label="field1" required="true" aura:id="field1" />
</div>

Css
.THIS .minimumWidth .slds-p-left_medium{min-width:760px;}