Deprecated: Optional parameter $list declared before required parameter $is_script is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 21

Deprecated: Optional parameter $register declared before required parameter $footer_or_media is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 45

Deprecated: Optional parameter $register declared before required parameter $footer_or_media is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 104

Deprecated: Optional parameter $expire declared before required parameter $path is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_functions.php on line 54

Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/themes/entaro/inc/classes/megamenu.php on line 155

Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/themes/entaro/inc/classes/mobilemenu.php on line 147

Deprecated: Optional parameter $args declared before required parameter $wp_customize is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 583

Deprecated: Optional parameter $args declared before required parameter $wp_customize is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 606

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/feed-rss2.php on line 8
salesforce Lightning Archives - Salesforce Next Gen https://salesforcenextgen.com/tag/salesforce-lightning/ Trailhead and Beyond Mon, 28 Dec 2020 19:37:05 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 https://salesforcenextgen.com/wp-content/uploads/2020/10/cropped-76dc0dd6-326a-4956-a412-bfdf20c7fb23_200x200-32x32.png salesforce Lightning Archives - Salesforce Next Gen https://salesforcenextgen.com/tag/salesforce-lightning/ 32 32 Trailhead Leaderboard(Unofficial) https://salesforcenextgen.com/trailhead-leaderboard-unofficial/ https://salesforcenextgen.com/trailhead-leaderboard-unofficial/#respond Mon, 15 Jan 2018 06:21:18 +0000 http://www.salesforcenextgen.com/?p=1202 Trailhead Leaderboard (Unofficial) Hello everyone, Today I am presenting to you Salesforce Trailhead LeaderBoard(Unofficial), a Leaderboard is typically used to signify rank among the fellow participant and helps in bringing out the competitive best of everyone. I believe that trailhead has now become a global competition, where More and more companies are asking its employees …
Continue reading Trailhead Leaderboard(Unofficial)

The post Trailhead Leaderboard(Unofficial) appeared first on Salesforce Next Gen.

]]>
Trailhead Leaderboard (Unofficial)

Hello everyone, Today I am presenting to you Salesforce Trailhead LeaderBoard(Unofficial), a Leaderboard is typically used to signify rank among the fellow participant and helps in bringing out the competitive best of everyone. I believe that trailhead has now become a global competition, where More and more companies are asking its employees to enroll to the Trailhead and start learning.

There are companies who are trying to build their employee’s (Salesforce Admin – developers) career path/growth to include trailhead badges, projects, and trails in their career path. It is becoming imperative for companies like them to showcase their employee’s hard work and brag about it or in fact show it as a swag like we brag about the Salesforce’s certifications. Therefore leaderboard like this provides the perfect platform for companies to showcase their effort.

Trailhead Leaderboard (Unofficial)

Furthermore I firmly believe that Salesforce Trailhead should provide an official Leaderboard down the line in the future, but meanwhile, you can register your profile by clicking on the button below.

Follow the below steps to Get yourself registered at Salesforce Trailhead Leaderboard (Unofficial)

Step 1: Click on the button “Register Profile to Trailhead LeaderBoard”

Trailhead LeaderBoard (unofficial)

Step 2: Fill up the Trailhead Profile form carefully entering your details like Name, Email, Trailhead Profile Id or your Vanity URL and company name. * Make sure your Company name is displayed in the dropdown suggestion list, if not then leave your Company name in the comment and I will enlist it to the data base.

Trailhead Leaderboard (unofficial)

Step 3: Once you have completed step2 then click on submit button if you have entered your profile id / vanity URL correctly you should see your profile like below, if not then refresh the page and enter the detail carefully.

Trailhead Leaderboard (unofficial)

Step 4: Once your profile has loaded, click on the button “Please confirm your profile” and this will store your data at Leaderboard. and you will see an alert (profile submitted to leaderboard successfully), but if your profile has already been submitted then you will get an alert “”

Trailhead Leaderboard (Unofficial)

Step 5: Once you click on the alert message, it will show you a button to update profile at leaderboard.

Trailhead Leaderboard (Unofficial)

Step 6: Your Trailhead profile should start appearing under the table “Trailhead Champions crown ” and your company will have an entry in the “Trailhead Champion Companies Profile crown

Step 7: Further below there is the graphical representation of the leaderboard (Company -points ) only at the moment.

Please feel free to reach out to me, if you have any suggestions to further enhance this leaderboard or add any new  feature. I would look forward for your esteemed feedback as well and Happy Trailblazing 2018.

Also Have a look at the below resources:

  1. Best Salesforce Interview Questions book with Apex and Visualforce concept explained

Also Have a look at the below learning resources:

  1. SOQL (Salesforce Object Query Language)
  2. Apex Trigger Best Practices and the Trigger Framework

  3. Salesforce Interview Question and Answers Part 2

  4. Salesforce Interview Questions on Test Class

The post Trailhead Leaderboard(Unofficial) appeared first on Salesforce Next Gen.

]]>
https://salesforcenextgen.com/trailhead-leaderboard-unofficial/feed/ 0
Salesforce Trailhead Widget for your Website https://salesforcenextgen.com/salesforcetrailheadwidget/ https://salesforcenextgen.com/salesforcetrailheadwidget/#comments Thu, 04 Jan 2018 04:25:11 +0000 http://www.salesforcenextgen.com/?p=1178 Salesforce Trailhead widget for your Website Hi Friends Recently, I have been working on a small project, where I wanted to make a profile card, which displayed your trailhead profile (your rank, Badges, point and your basic Info available on Trailhead). Something like shown below. This Salesforce Trailhead widget will help you, showcase your hard-earned Badges, …
Continue reading Salesforce Trailhead Widget for your Website

The post Salesforce Trailhead Widget for your Website appeared first on Salesforce Next Gen.

]]>
Salesforce Trailhead widget for your Website

Hi Friends

Recently, I have been working on a small project, where I wanted to make a profile card, which displayed your trailhead profile (your rank, Badges, point and your basic Info available on Trailhead). Something like shown below.

Salesforce Trailhead Widget

This Salesforce Trailhead widget will help you, showcase your hard-earned Badges, points and completed trails on your website. If you own a WordPress site, Blogspot or any website, just use this widget like a swag to brag about your achievements in trailhead.

Any impact on my Blog or website? well this widget uses an asynchronous call to an external server and everything is calculated there and the result is embedded on your website without using any of your website’s resources.

To Use this widget for your website please follow the below instruction.

Step 1

To begin we need your trailhead profile Id, you can find your trailhead profile by logging into your trailhead account and clicking on the profile drop-down menu as shown in the image below:

Salesforce Trailhead Widget

you will either find a vanity URL or a Profile ID – ‘005500000061VVIAA2’ copy it and paste it temporarily on your system.

Step 2 

Copy the below code and paste on your page:

https://gist.github.com/sumitkumardatta/2b67d71c20c09742a4b7e958dd0119e4

Step 3 

Now In the code line shown below:

<script async src=”http://salesforcenextgen.com/wp-content/themes/twentysixteen/trailheadWidget.php?yourProfileId=sumitkumardatta” type=”text/javascript”> </script>
After ‘yourProfileId=’, paste either your vanity URL or the profile Id we saved in step 1, for me it is my vanity URL ‘sumitkumardatta’ for you it can be anything.
and that is it, you are good to use this widget on your website.
Let me know in the comments if you face any issue or have any feedback.
Have a Happy New Year from salesforce Next Gen

The post Salesforce Trailhead Widget for your Website appeared first on Salesforce Next Gen.

]]>
https://salesforcenextgen.com/salesforcetrailheadwidget/feed/ 2
Salesforce Lightning Tutorial: Lightning Component basics https://salesforcenextgen.com/salesforce-lightning-tutorial-component-basics/ https://salesforcenextgen.com/salesforce-lightning-tutorial-component-basics/#comments Tue, 19 Dec 2017 14:29:54 +0000 http://www.salesforcenextgen.com/?p=1159 Salesforce Lightning Tutorial: Lightning Component basics Chapter 1: Prerequisite for Lightning Component Development My Domain Before we begin to deep dive into the development of Lightning Component we need few things to be enabled in our Developer Edition Org. First thing is to enable My Domain in the DE org. Enabling My Domain and activating …
Continue reading Salesforce Lightning Tutorial: Lightning Component basics

The post Salesforce Lightning Tutorial: Lightning Component basics appeared first on Salesforce Next Gen.

]]>
Salesforce Lightning Tutorial: Lightning Component basics

Chapter 1: Prerequisite for Lightning Component Development

My Domain

Before we begin to deep dive into the development of Lightning Component we need few things to be enabled in our Developer Edition Org. First thing is to enable My Domain in the DE org. Enabling My Domain and activating it can take up to half an hour, therefore we need to have My Domain as early as possible for any development.

Adding a Custom Domain, serves many other purposes as well, which are mentioned below:-

  • Highlight business identity and unique domain URL.
  • Login screen can be branded and customized.
  • Work in multiple Salesforce Org at the same time.
  • Set up custom login policies.
  • It is a required feature for Single-sign On facility and Lightning Components.

My Domain is also available for sandboxes and more info about My Domain can be found in the Below mentioned document.

https://help.salesforce.com/articleView?id=domain_name_overview.htm&type=5

Before we begin the development lets create the custom object that we require for this tutorial.

To create a new object in the Lightning Experience(LEX), follow the below instruction these instruction are given assuming the you have enabled the Lightning experience in your org or you already have it enabled.

  1. Go to Object Manager, by clicking on the gear icon on the top-right of your org, then click on the Setup.Salesforce Lightning tutorialsFig 1.1: Setup link
  2. A new window will open, click on the object manager tab, this will open the list view of the objects presently deployed in you Org, now click on the create button and then click on custom object.Salesforce Lightning tutorials

    Fig 1.2: Object Manager TabSalesforce Lightning tutorials

    Fig 1.3: Create button

  3. Now fill up all the required fields i.e. Label, Plural Label, Object Name Record Name and its Data type, and other features which are mentioned below, accept all the default values other than the one mentioned below.Salesforce Lightning tutorials

    Fig 1.4: Object Definition Page

    Field Value
    Label Expense
    Plural Label Expenses
    Starts With vowel sound checked
    Object Name

    Expense__c

  4. Once the object’s definition is saved, then on the object definition page, click on the link Fields & Relationships link and create custom fields on this object. Click on the new button, it will take you to the Data type selection screen.Salesforce Lightning tutorials

    Fig 1.5: Object definition page

    Salesforce Lightning tutorialsFig 1.6: Field Data type Selection page

  5. Create the below mentioned fields
    Field Label API Name Field Type
    Amount Amount__c Number(16,2)
    Client Client__c Text(50)
    Date Date__c Date
    Reimbursed Reimbursed__c Checkbox

    Make sure that before we begin, you must have some knowledge of Apex Basics and Database, otherwise it would very difficult to understand some concept mentioned here.

 Chapter 2: Getting Started with Lightning Components

Before we dive into the abyss of Lightning, first we need to know that why we should use lightning and what are the benefits of using the Lightning Component.  Its benefit includes the following features.

  • Out of the box Component set to kick start our app building experience, these components are smart and do not require optimization for different devices as they take care of it themselves.
  • Performance, as we use stateful Client and stateless server architecture and rely on JavaScript on the client site to deal with all the UI component meta data and app data. Server calls are reduced as they are called only when they are necessary.
  • Event Driven architecture, for better performance of components.
  • Faster development device-aware and cross browser compatibility and component rich ecosystem.

Let’s know Lightning Components framework a bit more.

What Is the Lightning Components Framework?

It is a UI framework used for developing apps which run both on mobile devices and desktop, it makes use of single page application architecture using dynamic, responsive components for the interface. It implements JavaScript on the client side and Apex on the server side.

Salesforce Lightning tutorialsFig 2.1 Lightning Framework

It is a framework with a collection of code and services to help developers create unique and modern Apps, it was born to build salesforce for mobile devices but later on it was decided to use this framework for both desktop and mobile devices. This framework is for building Single Page application.

Where You Can Use Lightning Components

Lightning components can be used in many different ways, like customizing the org, standalone app and even apps that can be hosted on other platforms (using Lightning out).

Lightning components can be embedded in LEX app launcher, as a tab in Salesforce App Navigation. They can be used in Lightning App Builder and Community builder.

Lightning components can be added to a custom lightning page, record page as a quick action or a standalone app.

Creating and Editing Lightning Components

Let’s begin writing some code and create awesome components for our org.

To write the code we need to open the IDE, which can be accessed by either clicking your name (in Classic) or the gear icon in the LEX.

Salesforce Lightning TutorialFig 2.2: Developer Console link

Salesforce Lightning TutorialFig 2.3: Developer Console Interface

Create Lightning Components in the Developer Console

To create a Lightning Component in the developer console follow the below instruction:-

  1. Click on file and then hover over the new menu and then click on Lightning Components, this will open another dialogue box as shown below.

Salesforce Lightning TutorialFig 2.4: Lightning Bundle

  1. Give it the name helloWorld and click on submit button.
  2. This will open helloWorld component bundle and helloWorld.cmp as tabs. By default it provides us with opening and closing tag of aura:component, for this section just type <p> Hello Salesforce Lightning </p>

Salesforce Lightning TutorialFig 2.5: HelloWorld Component

We have created our first component, now how to view this component, it is not as simple as Visualforce Page. To view Lightning component we first need to put in a container app. Let us make a simple container app for our helloWorld Component.

For creating the App follow the below instruction:

  1. Click on file and then hover over the new menu and then click on Lightning Application, this will open another dialogue box which is the New Lightning Bundlepanel, enter the name of our container app “harnessApp” for the app name, and click Submit you will have something as shown

Salesforce Lightning TutorialFig 2.6: The container App

  1. This app will have <aura:application> tag written by default, just type <C:helloWorld/> inside these tags and click on save. The difference between a Lightning App and component is visible on the right side panel. In App there is a preview button and in the component there is no preview button.

So here you see how we created a component and then hosted it inside a Standalone Lightning App. So you must be wondering that, what a component is. So without a further adieu let’s dive deep into the component.

What Is a Component?

A Component is a bundle which contains set files, written and wired in such a way that they accomplish a common business goal .They are coherent yet loosely coupled set of code and form the basic building block of Lightning Component Framework. It encapsulates a modular and reusable piece of UI and can range from single line of text to entire application. Let’s discuss about the component’s mark up next. Component resource has a .cmp suffix. Below is an example of the component mark up.

<aura:component>

Hello, world!

</aura:component>

This is as simple as a component can be in our helloWorld.cmp

Component Naming Rules

A component name must follow these naming rules:

  • Must begin with a letter, contain only alphanumeric or underscore characters, it must be unique in the namespace
  • Can’t include whitespace, end with an underscore or contain two consecutive underscores.

Component Bundles

A component bundle consists of files and resources grouped together to achieve a common goal, it contains the following resources:-

  • Component: resource name has suffix of .cmp and it contains all the mark up of the component. Each bundle can have only one component.
  • CSS: resource name has suffix of .css and it contains all the styling of the component
  • Controller: resource name has suffix of .js and it consists of client-side controller methods to handle the events.
  • Design: resource name has .design as the suffix and it is required for a component to be used in lightning app builder, lightning pages or community builder
  • Documentation: resource has .auradoc as suffix and is a description of the component, sample code and one or more component reference.
  • Renderer: resource name has .js as a suffix and is used to override client-side renderer for a component.
  • Helper: resource has .js as its suffix and it contains JavaScript Functions that can be called from any JavaScript code in the components bundle.
  • SVG File: resource has .svg as the file extension and it contains custom icon resource for the components used in lightning App Builder or community builder.

Next we will start making our component a little bit more complex by using attribute and expressions.

Also Have a look at the below resources:

  1. Best Salesforce Interview Questions book with Apex and Visualforce concept explained

Also Have a look at the below learning resources:

  1. SOQL (Salesforce Object Query Language)
  2. Apex Trigger Best Practices and the Trigger Framework

  3. Salesforce Interview Question and Answers Part 2

  4. Salesforce Interview Questions on Test Class

The post Salesforce Lightning Tutorial: Lightning Component basics appeared first on Salesforce Next Gen.

]]>
https://salesforcenextgen.com/salesforce-lightning-tutorial-component-basics/feed/ 1