Webner Blogs - eLearning, Salesforce, Web Development & More - Page 3 of 65

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…

Error: An object reference is required for the non-static field, method or property

Author - Webner
|
0 Comments
|

Object Reference

In one of my .net reference projects, I had a need to create a new model and its corresponding interface, repository, and client class. In a method of the existing controller class, I need to create a record of that model class but I don’t Read more…

While installing MS SQL server 2012 on windows 7 error

Author - Webner
|
0 Comments
|

“Prior Visual Studio 2010 instances requiring an update.” failed.

Get installation media location and locate the below file

\redist\VisualStudioShell\VS10sp1-KB983509.msp

Then press the ‘re-run’ button again, see if the error is gone in Windows.

DoneRead more…

Edit Office Documents online in web application using Office365 OneDrive APIs

Author - Webner
|
0 Comments
|

This post is about editing office documents online in a web application interface for users. In this, you will require an office 365 license to use Microsoft graph APIs to edit documents through Onedrive.

To edit MS Word documents online, one of the quick approaches is saving the Word document Read more…

Lightning Record Edit Form (LWC)

Author - Webner
|
0 Comments
|

In Salesforce, LWC allows us to use lightning-record-edit-form which implements Lightning Data Service and doesn’t require any additional Apex controllers to create or update record data. It also takes care of field-level security and sharing for us, so that users can only see Read more…

Advantages of Azure SQL Database

Author - Webner
|
0 Comments
|

Azure SQL Database is a relational database provided as Database-as-a-Service, which is a part of Microsoft’s Cloud Infrastructure Platform, Microsoft Azure. It is also called SQL Azure. It provides database-backed managed service in the cloud with a petabyte-scale infrastructure. It is based Read more…

Home insurance and Property Insurance

Author - Webner
|
0 Comments
|

Home Insurance:

Home Insurance is also called Homeowner Insurance. This is a type of Property Insurance that usually covers the damages and losses to the Individual’s residence along with the furnishings and other assets in the home. This Insurance policy has various personal Read more…