• smriti sharan19
  • NEWBIE
  • 15 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 12
    Replies
Hi,
I have seen multiple links to drag and drop rows in lightning but can we do drag and drop columns in lightning

Example1 of drag and drop rows : https://developer.salesforce.com/forums/?id=9060G0000005OcPQAU

Example2 of drag and drop of rows: https://gist.github.com/brianmfear/fb13ac4781c79fad6495ef7dc1676f4f

Example of drag and drop column and rows but this is not using lightning: https://sindu12jun.github.io/table-dragger/

Has anyone worked on drag and drop of columns in lightning. If yes please share the code.
How to write a trigger when case status is closed then all task should be completed and when all task are completed then case should get closed?
When a opportunity is created then billing address of accounts should get updated into the opportunity?

I have created a custom field on opportunity object BilingAddress__c. Now i want that whenever i create a new opportunity then the billing field on opportunity gets updated with the BillingAddress field of account.

Step 1: Trigger will be created on Opportunity object
Step 2. We will use after insert as it is based on two objects.

Can you give me code for this.
When a opportunity is created then billing address of accounts should get updated into the opportunity?

I have created a custom field on opportunity object BilingAddress__c. Now i want that whenever i create a new opportunity then the billing field on opportunity gets updated with the BillingAddress field of account.

Step 1: Trigger will be created on Opportunity object
Step 2. We will use after insert as it is based on two objects.

Can you give me code for this.
Hi !  I need to be able to drag and drop rows in a table in my Lightning component.   For now I have a table with 3 rows and some values that are hard coded...  Since i've never done that before, I start by searching some example in Google but I found only example of drag & drop between 2 sections like <div> ou <ul>
I found a great library to do drag & drop in tables but I could not manage to make it work in Lightning...  https://github.com/sindu12jun/table-dragger
Is it possible to do some drag & drop in a table in a Lightning Component ? Do I need to change that for div or something else ?
Can you give me an example that I can try and make it work ?   

Thank you !
I'm having all sorts of problems trying to complete the challenge for the sharing rules section of this module. I feel like I have everything setup properly but still get this error message:
Challenge Not yet complete... here's what's wrong: 
The Sharing Set is not setup with proper Case access. Please check the requirements.

Sharing set name is "Share cases with customers"
Applies to Profiles: Customer Community User
Access Granted: Case - User:Account = Case:Account - Read/Write

What am I missing

 
Hi,

trying to complete the challenge, I have the following error:
The "Customer Community User" for the contact "Edna Frank" is not created properly.

More info, hope this helps finding the problem:
The contact exist, in Admin > Users> User license is "Customer Portal Manager Standard", when I try to change it to "Customer community" i'm getting the error "cannot upgrade from or downgrade to LPU"
The contact is assigned to the account "Customers", there is a case associated to it, with Contact Name = Edna Frank
I created the Sharing Set Settings and configured the access (User:Account = Case:Account, Read/Write). The community is active.
Oddly enough, I cannot log in as Edna Frank.
If I'm trying to create a new user, I receive the following error: "Your request cannot be processed at this time. The site administrator has been alerted.
The account associated with this portal has no owner". The created account is "Customers" and I double checked, i'm the owner of this account.
I've received a message "Customers registration accountId parameter value is not valid."

Any idea or clues on how to solve this ?
Hi
I have Customer Community enabled in my developer org. But i am not able to see Customer community user license when i tried to create/edit a user. Any idea?
Hi All,

Can anyone please help me with bellow challenge.


Create an Apex trigger for Account that matches Shipping Address Postal Code with Billing Address Postal Code based on a custom field.
For this challenge, you need to create a trigger that, before insert or update, checks for a checkbox, and if the checkbox field is true, sets the Shipping Postal Code (whose API name is ShippingPostalCode) to be the same as the Billing Postal Code (BillingPostalCode).The Apex trigger must be called 'AccountAddressTrigger'.
The Account object will need a new custom checkbox that should have the Field Label 'Match Billing Address' and Field Name of 'Match_Billing_Address'. The resulting API Name should be 'Match_Billing_Address__c'.
With 'AccountAddressTrigger' active, if an Account has a Billing Postal Code and 'Match_Billing_Address__c' is true, the record should have the Shipping Postal Code set to match on insert or update.

For above challenge i tried with following code but looks like it doesnt mach the requirement.

trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
        If (a.Match_Billing_Address__c = true) {
            /*ShippingPostalCode = BillingPostalCode;*/
        }   
    } 

}

Please help me
Hi all i have a scenario where in i am trying to make my header row of the pageblock table fixed can anyone help on this?
below is my code

<apex:page>
<apex:outputPanel id="tablePanel" style="overflow: auto; height: 200px;" layout="block">
   <apex:pageBlockTable value="{!wrapperLst}" var="data" id="table" >
  
    <apex:column headerValue="Action">
    <apex:inputCheckbox value="{!data.isChecked}"/>
    </apex:column>
  
    <apex:column headerValue="Name">
    <apex:facet name="header">
    <apex:commandLink value="Product Name" style="text-decoration:underline" reRender="table" 
       action="{!doSorting}">
     <apex:param assignTo="{!sortParam}" value="name"/>
   </apex:commandLink>
  </apex:facet>
  <apex:outputField value="{!data.prodItem.name}"/>
  </apex:column>
      .......
       ....
</apex:pageBlockTable>
</apex:outputPanel >

</apex:page>

Any help would be appreciated

thanks
difference between "Trigger.New" and "Trigger.old".

what is the difference between "Trigger.New" and "Trigger.old"?

  • December 22, 2010
  • Like
  • 0