New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :

Tuesday 19 December 2017

Selecting multiple values from a Picklist in Lightning Component

All the credit goes to below blog post -

As I am not able to get the result immediately and spent sometime to figure out few issues, I am posting my version which might help some of you.
Server Classes -
Custom Event to fire -
Reusable component -
Using the above component -

Hold the 'Shift' key to select the multiple values.

Friday 15 December 2017

Sorting the cloumns in Datatable while working with Lightning Component

I am giving the simple idea to implement the sorting functionality for the datatable.

Create the following Apex Class -
Create the following Lightning Component -
Create the following Lightning Controller Js - Create the following Lightning Helper Js - Create the following Lightning App in which you can see the preview for the above created component - I still didn't work on showing the up and down arrows which I might work in future. (Please comment if you want that functionality to add, with some response it will be encouraging me to work on that part as soon as possible.)

Friday 1 December 2017

Quick Action to Update a Record in Lightning Experience (Alternative to Custom Button in Salesforce Classic)

In this example I going to explain about create a custom action by overriding it with 'Lightning Component Bundle'.

Create the Apex Class to update the Contact -

Create the following Lightning Bundle -
Steps to Create Quick Action -

after saving add to the Lightning Quick Actions in Contact Page layout as shown below -

after saving if you switch to lightning experience you should be able to see as shown below -

as per the above screenshot level is blank, upon clicking on "Update Contact" Action it will be updated to Primary.

Close the above window and refresh the page you should see contact "Level" as "Primary".