Webner Blogs - eLearning, Salesforce, Web Development & More - Page 2 of 64

How to Create and Add a Lightning Web Component into the Lightning App in your Salesforce Scratch org

Author - Webner
|
0 Comments
|

After assuming that the user already has the VS Code and all the necessary packages like Salesforce CLI installed and has created a scratch Org into the system, let’s begin the process to create and add a lightning web component into our org’s Homepage and App.

To Read more…

Salesforce | Lightning Web component Lifecycle hooks

Author - Webner
|
0 Comments
|

Lightning Web component Lifecycle Hooks:

These are the callback methods that execute at a specific phase of the Lightning Web component’s lifecycle. There are various types of lifecycle hooks:

constructor(): This method executes whenever the web component is initialized. The flow of execution is from Read more…

How to get Salesforce Custom Field Ids in Apex

Author - Webner
|
0 Comments
|

We can get the Ids of Salesforce Object’s custom fields in the Apex code using Tooling API. Following is the example code for the same:

String objectDevName = ‘ObjectName’;
ToolingAPI toolingAPI = new ToolingAPI();
List objectData = (List)toolingAPI.query(‘Select Id From CustomObject Where DeveloperName = \” + objectDevName + ‘\”).records;
Map customFieldIds = new Map Read more…

How To Reset Your MariaDB-10.2 Root Password on Ubuntu 20.04

Author - Webner
|
0 Comments
|

Note: This tutorial will work only for resetting the MariaDB root password, not for the MySQL server.

Introduction

If you forget the root password of the MariaDB database in Ubuntu, you can still regain the access and reset it if you have access to the server Read more…

How to create a Salesforce Scratch Org

Author - Webner
|
0 Comments
|

Scratch org is a disposable and source-driven deployment of Salesforce metadata and code which is made for developers (developing specific modules) and for automation that is continuous integration or continuous development. Scratch org is a configurable org/sandbox which allows the developers to emulate different Salesforce editions with different Read more…

OAuth 2.0 Authorization Code Grant Type

Author - Webner
|
0 Comments
|

The Authorization Code Grant Type is perhaps the foremost common of the OAuth 2.0 grant types that you’ll encounter. Both web apps and native apps can use it to get the access token after a user authorizes the app.

What is OAuth?

It is not a Read more…

How to exclude source when Syncing or Converting – DX

Author - Webner
|
0 Comments
|

While Syncing the metadata files between your local system and a target/Scratch org, you often want to exclude some of the source files. Similarly, you often have files to exclude when converting the source to the Salesforce DX project format. In both the above-said cases, you can exclude Read more…

How to Apply custom pagination using devextreme

Author - Webner
|
0 Comments
|

The devextreme already provides pagination features as we can see in the above image.
If we want to go directly to page 155, we can go to that specific page by clicking on the page to page. This is a time-consuming process. We have no option to go to Read more…

How “this” is used in callback function in javascript

Author - Webner
|
0 Comments
|

The “this” keyword of JavaScript causes confusion for people, who start to use Javascript language and mainly for those who start after using the other languages. Here the main question is how to use “this” in the right way in a callback function.

Lets the following example:

function Read more…

Mvc c# : Exclude Enum values from DropDownListFor Html helper on .cshtml Page

Author - Webner
|
0 Comments
|

Suppose we have some enum type in c# as follows :
enum Performance
{
None=-1,
Dissatisfied=0,
Below Average=1,
Average =2,
Good = 3,
Excellent=4,
}
Consider some employee model with a given enum type property.
public class EmployeePerformance{
public int EmpId {get; set;}
public Performance rating{get; set}
…………………………..
………………………..
}

In a Read more…

Blazor in .NET

Author - Webner
|
0 Comments
|

Blazor is a new DOT NET web framework for building client applications using C # / Razor and HTML-enabled browser with WebAssembly.

It can simplify the process of building a single-page program (SPA) and at the same time enable full web development using .NET.

WebAssembly

WebAssembly is developed Read more…

‘System.LimitException: Too many query rows: 50001’ error in Salesforce

Author - Webner
|
0 Comments
|

As we know, Apex runs in a multitenant environment so to restrict the runaway apex code/processes to acquire shared resources, the Apex runtime engine strictly enforces these governor limits. These governor limits count for each Apex transaction. For each execution of a batch, these limits are reset in its Read more…

HTMLCollection and NodeList

Author - Webner
|
0 Comments
|

HTMLCollection:

HtmlCollection is a collection of HTML elements from DOM. it is access by the name,id or index number. It use getElementByClassName, getElemenrtByTagName in NodeList.

It uses three Methods:

HTMLCollection Item() Method
HTMLCollection length() Method
HTMLCollection namedItem() Method

Html Collection Read more…

How to export database schema with data in Microsoft SQL Server Management Studio

Author - Webner
|
0 Comments
|

Problem: When we use Microsoft SQL Server Management Studio to export the database, by default it will export the database schema only. When I was trying to export the database to import it into my other local machine, I faced this issue. I selected to export Read more…

How to read Emails using JMeter

Author - Webner
|
0 Comments
|

JMeter is an open-source tool that helps to perform load testing. It provides various samplers to perform load testing. Today, we will discuss email related samplers. There are two samplers to perform an action related to the email, read(mail reader sampler) and send(SMTP) email. With the help Read more…

How to create a collapsible section in Salesforce LWC

Author - Webner
|
0 Comments
|

Problem: We can create a collapsible section in Salesforce Lightning Web Component using slds-section slds-is-open LWC classes or HTML <details> tag. But we are are using LWC classes slds-section and slds-is-open we need to provide svg icon as given the below Read more…

Git-Hub Project Management

Author - Webner
|
0 Comments
|

Step 1: First, create a. It’s a repository, not a project. You need to create a project using the project Menu. I will move on to the project later. First, I am discussing creating issues.

Step 2: Go to the Issues menu and click on Read more…

How to change the label of a field created by a managed package?

Author - Webner
|
0 Comments
|

If we try to edit a managed package field from the object manager, it will allow you to edit very few details but it will not allow you to edit the label of the field. Both Field Label and Field Name is disabled as you can see in the screenshot Read more…

How to create a scratch org with namespaces in Salesforce DX

Author - Webner
|
0 Comments
|

Salesforce DX is a platform that allows us to create multiple scratch Orgs with namespaces equivalent to the packaging organization. In order to achieve this, firstly link your Dev Org with namespaces to the Developer Hub Org. This process is also known as registering namespaces.

To register a namespace in Read more…

Fetch Mails from Gmail in Core PHP

Author - Webner
|
0 Comments
|

Fetch Mails in Core PHP

Create an Core php app on console (https://console.developers.google.com).
Download Google Client library from the following link (https://github.com/googleapis/google-api-php-client)
Download the file of credentials(client_id,client_secret) and put it in the project directory.
Create Read more…