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

Decorators in Lightning Web Component

Author - Webner
|
0 Comments
|

The Lightning Web Component has three decorators.

@api
@track
@wire

@api: If we want to pass any variable from Parent component to child component then we use @api decorator. To pass data to the child component, we need to define a variable with @api decorator in the child Read more…

Custom font in Visualforce Page

Author - Webner
|
0 Comments
|

We can use custom fonts in the Visualforce page using Salesforce Static Resources. Following are the steps to use custom fonts:

In Setup, use the Quick Find box to find Static Resources and create new a resource with ZIP of the font file as given below:

Create a css file Read more…

Insurance Endorsement

Author - Webner
|
0 Comments
|

Insurance Endorsement?

An endorsement is a policy modification that can be made throughout the policy’s term without having to renew it. As a result of the endorsement, your premiums may change. They’re commonly found in property and casualty insurance plans. Health and life insurance coverage can Read more…

Multi-Car Credit In Auto Insurance

Author - Webner
|
0 Comments
|

What Is a Multi-Car Insurance Policy?

A multi-car insurance policy covers multiple cars, trucks, or other vehicles. You can save money by bundling your automobiles.

This strategy is also known as a “schedule of cars” policy or a “many vehicle policy.” These policies are usually only Read more…

Object Pool Design Pattern

Author - Webner
|
0 Comments
|

Definition

While building applications, there are objects that are expensive to build in terms of the system resources that they require. Creating such objects, again and again, will impact the overall performance of the application. To prevent the overall work of creating new objects, again and again, the Read more…

If you forgot the Administrator password for widnows EC2 machine

Author - Webner
|
0 Comments
|

Problem: If you forgot the Windows EC2 machine Administrator password other than the default auto generated password provided by AWS after using the key pair while launching the EC2 machine, and still you can’t access the EC2 windows machine with default auto generated password then follow the Read more…

Drag and drop .url issue

Author - Webner
|
0 Comments
|

Chromium-based browsers (chrome and edge) recently produced issues related to drag and drop hyperlink HTML elements.

I had a list of file names in the grid in my application and file names were created as hyperlink (<a></a>) elements which were allowed for dragging. The whole grid Read more…

Bulk State Transition

Author - Webner
|
0 Comments
|

The Bulk State Design pattern is the general pattern that executes the bulk of the actions in Apex based on the change of state of one or more records. Bulk transitions increase the code reusability by allowing only records that fulfill the requirements to be processed.

Design Patterns for Read more…

NodeJs ZLIB – Zip and Unzip files using Nodejs

Author - Webner
|
0 Comments
|

Compression and decompression of files also mean to zip or unzip files using Nodejs. It is implemented in Nodejs using the Zlib module.
We can access Zlib using the following command.
const zlib = require(‘zlib’);
Zip and Unzip of files can be done by piping the source stream data into Read more…

The RefreshApex Method and its implementation in the Lightning Web Component

Author - Webner
|
0 Comments
|

The refreshApex() function is used when we want to refresh the page data in lightning web components. We can update the wire function or parameter data using refreshApex (), and then component values will be rendered. Refresh apex works only when you pass the complete response as the argument.

Syntax Read more…

What is Schema in Salesforce?

Author - Webner
|
0 Comments
|

Schema is a namespace provided by salesforce which provides schema metadata information using different methods and classes.

ChildRelationship Class
This class contains methods to access the child relationship as well as the child sObject for a parent sObject.
DataCategory Class
This class represents the categories within Read more…

Remove the Logged in account from Microsoft Teams

Author - Webner
|
0 Comments
|

Sometimes we do not want to save our profile on any account on some particular machines for security reasons. By default, the Microsoft Teams app saves the login credentials when we first log in, so next time it will not ask you to enter the password if you are already Read more…

Tab view in React-Native

Author - Webner
|
0 Comments
|

It provides various packages to create tabs like views in the application. So react-native-tab-view is one of them. This component is implemented using the react-native-pager-view which is another component that allows the user to swipe left or right throughout the page data. React-native Read more…

What Role Does Insurance CRM Play in Agency Management?

Author - Webner
|
0 Comments
|

Agency management software, according to the definition, is a digital solution that enables life, health, and property & casualty insurance agencies to automate their day-to-day duties and increase the efficiency of their operations. The new-age insurance CRM software has been developed to meet the needs of insurance agencies Read more…

How to Set and Get Window size/position using Selenium Webdriver

Author - Webner
|
0 Comments
|

How to Set and Get Window size/position using Selenium Webdriver

In website testing, most of the time, we need to set window position and size or get window size and position to test the website responsiveness. Selenium Webdriver has many applicable methods using which we can resize Read more…

How to Retrieve Metadata of AWS EC2 Machine

Author - Webner
|
0 Comments
|

Metadata is data about your EC2 instance that is used to manage and configure the instance. Developers use the metadata in the script in order to configure the instances and their resources.

Please login to your EC2 machine and run the following command:

# curl http://169.254.169.254/latest Read more…

LWC to create a custom editable datatable.

Author - Webner
|
0 Comments
|

LWC also provides a standard editable datatable, but it can’t be flexible in design. So we can create a custom datatable by using LWC in the following way, in which we can make changes as per our needs.

LWC HTML Code for datatable:

LWC JS Code Read more…

How to customize header filter value in devextreme

Author - Webner
|
0 Comments
|

Devextreme provides lots of features. One of them is customizing the header filter value in devextreme that applies to columns.

Sometimes we need to apply our own custom data for filters. Here I will explain how to add our own custom data in the column header filter. The below image Read more…

Create Component In LWC and display in salesforce page

Author - Webner
|
0 Comments
|

Following are the steps to create component in LWC and display in salesforce page:

Create Default Search org from VS code.

Authorize an Org.

Create Lightning web component.

After creating the lightning web component it will show the component under the LWC folder as shown in the image Read more…

Call Apex Function inside an LWC Function

Author - Webner
|
0 Comments
|

While creating the LWC component whenever you want to call an apex function you use the @wire function in it and pass parameter in it which has @track or @api decorator attached with it like @track id; or @api id; and whenever there is any change in the parameter the Read more…