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

Why and When to use Async and Await?

Author - Webner
|
0 Comments
|

In order to get a clear vision of these keywords, async and await, let us first understand the concept of synchronous and asynchronous programming.

Synchronous Programming:

It is a method of programming in which tasks are performed one at a time. The next task Read more…

Salesforce Org Browser

Author - Webner
|
0 Comments
|

The Org Browser makes it easier to retrieve metadata sources by displaying the available metadata types and their corresponding components in the default org. We can easily retrieve metadata sources, without having to use a manifest file. The Org Browser is available only in non-scratch org such as sandboxes Read more…

Features of lightning:recordEditform, force:recordData, lightning:recordViewform in Salesforce Lightning

Author - Webner
|
0 Comments
|

In salesforce lightning, sometimes we need to create, edit and save the records in the component. This is the time 3 types of components come into mind that arṣe recordEditform, RecordViewfrom, and recordData. We always get confused about which one to use.
The functionality of these components is basically Read more…

Salesforce | UI Record API in LWC

Author - Webner
|
0 Comments
|

UI Record API is used for fetching, creating, updating and deleting the particular record without using the SalesForce Apex Class. These APIs are:

Get Record
Get Field Value
Create Record
Update Record
Delete Record

Below is the sample code of the js controller of LWC for getting the particular record Read more…

How to assign a devextreme widget under another widget

Author - Webner
|
0 Comments
|

Sometimes we need to add a widget under another widget. In this post, we will cover how to add a dropdown, TextBox, or buttons under the dropdown widget.

See in the below screenshot – here File Size is a drop-down, this is implemented under the onToolbarPreparing in the devextreme datagrid Read more…

Introduction to Big Data

Author - Webner
|
0 Comments
|

Big data is data in a huge volume that cannot be handled by our traditional tools or databases. It is growing exponentially with time. Its size is so large and complexity is high that it is hard to use it efficiently with traditional data management tools.

Take an example of Read more…

Salesforce | LDS Create Record – Record Form and Record Edit Form

Author - Webner
|
0 Comments
|

LDS – Lightning Data Service is used to perform operations on data and access metadata in Salesforce. With LDS, we can view, create new records, and edit records without server calls (Apex methods). Whenever we want to work with Salesforce data, we use LDS as it requires simple and Read more…

Devextreme DataGrid Column Reordering and Saving Column State

Author - Webner
|
0 Comments
|

Devextreme Datagrid comes with a variety of features to work with column appearance at runtime. One among these is Column Reordering.
The column reordering feature in Devextreme allows the user to change the position of columns on the fly on the screen by using drag-drop.

Columns can also be Read more…

Get base64 String From File URL

Author - Webner
|
0 Comments
|

While working on the react native app, sometimes we need to get the base64 string from the file(image/video) URL. There are many packages available that convert a URL to base64 but they are not producing expected results. Finally, I have tried the “rn-fetch-blob” library and I Read more…

ECMAScript (ES10)

Author - Webner
|
0 Comments
|

ECMAScript is the standard for JavaScript and adding new features to JavaScript.
It is a subgroup of JavaScript. ECMAScript 10 is also known as ES10. In ES10 here are the new features.

Array.Flat(): The flat() function recursively flatten your array up to the level you specify, you Read more…

Deploying a React App on Linux based Server

Author - Webner
|
0 Comments
|

Step 1. Creating a React App

Install Create React App with the following command:

npm install -g create-react-app

Run this command to create a new app called my-reactapp:

npx create-react-app my-reactapp

Step 2. Reconfigure package.json.

Go to the specified Read more…

OAuth 2.0 Authorization Code Grant Type Using Salesforce

Author - Webner
|
0 Comments
|

As I mentioned in my previous post what is Oauth 2.0 authorization code grant type.

To implement this authorization in Salesforce we have to perform the following steps”

Implement apex code to send first request
String client_id = ‘*******************’;
String client_Secret = ‘************’;
Blob headerValue = Blob.valueOf(client_id + ‘:’ + client_Secret);
Http http = new Http Read more…

Handling Dynamic fields in Salesforce using Selenium

Author - Webner
|
0 Comments
|

Selenium is an open-source (free) automated testing framework for validating web-based applications across various browsers and platforms. Selenium Test Scripts can be written in a variety of programming languages, including Java, C#, Python, etc.

Authorizing OTP Verification using selenium:

Before heading towards automating the salesforce processes Read more…

CSV file upload in Moodle/Totara

Author - Webner
|
0 Comments
|

Step 1: Firstly, create a form using forms API. Create a class that will extend the “moodleform” class defined in “../lib/formslib.php”. Then override the definition() function of this class to include your form elements.

Step 2: To browse the CSV file, use the file Read more…

Creating custom object in Salesforce

Author - Webner
|
0 Comments
|

Log in to your Salesforce account.

Click Setup at the upper-right corner.
Under the Build section in Salesforce, click Create and select Objects or you can search objects on the search bar

To create a custom object, click New Custom Object.

Enter the name of Read more…

AWS Step Functions

Author - Webner
|
0 Comments
|

What are AWS Step Functions?

Step Functions is a serverless orchestration service that lets you combine AWS Lambda functions and other AWS services to build business-critical applications. Through Step Functions’ graphical console, you see your application’s workflow as a series of event-driven steps.

Workflow build Read more…

Download S3 bucket file from Salesforce

Author - Webner
|
0 Comments
|

When we are working with Salesforce and s3, sometimes we need to download a file from the s3 bucket without using an HTTP request. We can achieve this by generating URLs from apex code. This is a signed URL to access any file of the bucket.
awsKey = ’*******’; // S3 bucket key Read more…

How to upload a file on AWS S3 from Cakephp 3.9

Author - Webner
|
0 Comments
|

First, we need to install aws-sdk for PHP in the CakePHP project. To install it we can run the below command:

composer require aws/aws-sdk-php

Code to upload a file:

Template Code:
<?= $this->Form->create($product, [‘enctype’ => ‘multipart/form-data’]) ?>
<fieldset Read more…

Introduction to Salesforce Sites

Author - Webner
|
0 Comments
|

Salesforce Sites enables you to form public websites and applications that are directly integrated into your Salesforce organization—without requiring users to log in with a username and password. You can publicly expose any information stored in your organization through a branded URL of your choice, and make the site Read more…

ML.NET 1.4 (Machine Learning Framework) Overview

Author - Webner
|
0 Comments
|

ML.NET is a cross-platform and open-source machine learning framework that consists of CLI (Command-Line Interface) and Model Builder (which is a simple UI tool ) to make it easy to build custom ML models using Automated Machine Learning (AutoML).

Using ML.NET, developers can integrate ML.NET Read more…