How to send an error message from trigger back to the layout and display it on the record detail page. You need to use addError method for this.
For example :
errorMsg=’Some of the catalog courses are not available in LMS.<br/>Please sync them to LMS first Read more…
Tabindex: The tabindex is used to define the sequence for the cursor to move from field to field in an HTML form, to have a control over this flow of the cursor. By default, tab takes the user to the next field created on the page Read more…
Server Side Scripting is – when the user’s request is served by the script on the server to provide customized or dynamic data. Server-side processing on DataTables is that when all the DataTable functions like searching, ordering, pagination etc. are controlled by Server Side. This is used when we Read more…
It is already discussed “What is AutoComplete feature of jQueryUI” in one of my previous blogs. Please refer to following link for description of jQueryUI Autocomplete:
How to add font-awesome progress icon in textbox for autocomplete Jquery-UI plugin
Here, in this blog, I will Read more…
Error: “SEC7111: HTTPS security is compromised by (null)” error in IE11
I recently encountered an issue that a web page does not work in IE11 and throws exception “SEC7111: HTTPS security is compromised by (null)”.
By analyzing the page script, I found that IE threw the exception from Read more…
Use of Branches:
You can create different branches of your working tree with different names. For example if you don’t want to make changes on your working tree (clone repository on your system) you can create a new branch and make changes in it, add new files Read more…
Problem: FPDF which is a php class to generate pdf does not render many HTML tags like <style>,<img>. So it generates an unformatted pdf from HTML content.
Solution: TCPDF solves the problem of not rendering of HTML tags. It is a Read more…
In Linux bash you may face an error while using wildcard * to search files. For e.g. trying to search all jar files with the following command:
find. -name *.jar
will give following error:
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path…] [expression]
Reason is that * is Read more…
AJAX Response Race Condition
I am working on a j2ee project in which a lot of UI screens are AJAX based. Recently we started facing problems on some screens, which were not updating correctly. On one of the screens we have a lot of options with Read more…
Data loader is a desktop application and is used to import or export data in Salesforce. After import/export operation it gives back the detailed success and error log files in CSV format. It supports export of records up to 5 million. Data loader Read more…
Microsoft Outlook Rules
Rules are very helpful in setting the behavior of MS outlook. Rules can be used for many different purposes.
For example :
you can automatically send a reply to all the emails which you receive.
you can Read more…
Creating Custom Email Rest API Apex class in Salesforce using SingleEmailMessage class and C# example code to consume the Api
My web application was integrated with Salesforce and I had a requirement to use Salesforce as Email Client, but with a Rest API approach to send Read more…
GrapesJS is an open-source, Web Builder Framework to build HTML templates without any knowledge of coding.
Some tips for customizing GrapesJS Editor:
1. To add custom blocks in block manager.
Add this code to block manager json with other Read more…
By mistake if you have only 1 userid and you change that also to API only, then you cannot login to Salesforce. In this case how to convert Salesforce “API only” User to “Normal” User using Data Loader?
Salesforce API Only User is the user which can be Read more…
Below are some CSS best practices that every developer and designer should follow to write better code.
Reset user agent stylesheet or default styling of the browser :
There are default CSS properties in website pages that come from “user agent” stylesheet. Every browser has its own Read more…
Add float button with CSS and html without using any external library with on hover show/hide effect.
Mostly people use third party plugins or complex and unnecessary long css to add floating buttons, but we can create the same button with simple css and a single div Read more…
Swagger is a very powerful tool to generate documentation of your Rest based web services API containing Spring annotations. You don’t need to add any type of comments to your code to generate documentation. It will pick the Spring annotations and will generate the documentation for you. Below are Read more…
Problem: How to create a function in Postgres that will remove HTML tags from a piece of text?
Solution: Create function in Postgres :
CREATE OR REPLACE FUNCTION strip_tags(TEXT) RETURNS TEXT AS $$
SELECT regexp_replace($1, ‘]*>’, ”, ‘g’)
$$ LANGUAGE SQL;
How to use:
SELECT strip_tags(‘< Read more…
Before understanding how to maintain or start a project in SCSS we should understand what is SCSS and why it is used?
SCSS is a special type of file for SASS, a program written in Ruby that assembles CSS style sheets for a browser. SASS adds lots of Read more…
How to migrate an EC2-machine from one AWS account to another aws account?
Solution: To migrate EC2 machine, there are following main steps:
Create Snapshot of the existing machine drives.
Migrate the EC2 machine.
Upgrade/downgrade migrated machine configuration.
Step 1: Create Snapshot of the Read more…