Locating recycle bin in Salesforce

Author - Webner
|
0 Comments
|

Click on any of the tabs and find Recycle bin at the left bottom as shown in this image:

OR

You can use this URL into the salesforce to see Recycle bin:
https://na14.salesforce.com/search/UndeletePageRead more…

jQuery | Get and change link using near by class or Id value

Author - Webner
|
0 Comments
|

In one of our projects we are working on, we faced a problem where we wanted to change the HREF attribute value of anchor tag using jQuery. When we inspected the HTML code no unique id, name or class was given to < a href > element.

So how to Read more…

Introduction to Heroku

Author - Webner

Heroku is an all-in-one cloud based platform which allows software developers to develop and host applications over Heroku cloud. The company was setup in June 2007 which initially supported Ruby programming language. Later on, support for other programming languages such as Node.js, Java, PHP, Python, Scala, Go Read more…

Transition Delay Property in CSS and Javascript

Author - Ishpreet Kaur

What is Transition Delay?

Transition delay specifies the amount of time for the change to take place in css properties of DOM elements. Transition Delay value is defined in seconds (s) or milliseconds(ms).

How to implement Transition Delay in CSS Read more…

Localhost WordPress site asking for FTP credentials on installing new plugin

Author - Neelam

In one of the WordPress projects we are working on, whenever we tried to install a new plugin in locally installed WordPress, it asked for FTP credentials:

When we tried to install a new theme then also it asked for the same:

Actually, the problem was Apache web server was Read more…

What is in Bootstrap apart from grid system? Why it has a Javascript file also?

Author - Neelam

Bootstrap has lots of other things apart from grid system such as:

1. Glyphicons: Bootstrap has inbuilt icons which we can use by icon’s class name.

For Example: “glyphicon-search” will create search icon without using any external image. So Read more…

Salesforce | How to prevent double click on Apex button

Author - Webner
|
0 Comments
|

How to avoid double click on Apex button in Salesforce (after click disable button and enable again once action is complete)?

This is the code having the solution (explained below):

<apex:commandButton value=”Go” action=”{!runQuery}” styleclass=”btn btn-large btn-primary” style=”margin-left:2%;” onclick=”this.disabled Read more…

How to send iCal attachment in the email

Author - Kailash

Suppose you are sending an email in PHP and want to send iCal attachment. In PHP this can be achieved as below:

1. Create iCal file content and put in a variable (like $iCal here):

$iCal = “BEGIN:VCALENDAR\r\n
VERSION:2.0\r\n
METHOD:PUBLISH\r\n
X Read more…

Tomcat version 8 not visible in Eclipse

Author - Navneet Kashyap
|
0 Comments
|

Solution: Follow below-mentioned steps and you will get Tomcat version 8 working in Eclipse:

1. Download the latest Eclipse from the official site, preferable version Mars.

2. Do eclipse installation as you did earlier or just extract it in /opt.

3. Now when you go for creating a Tomcat Read more…

Totara | How to create new audience, add members to audience and create learning Paths

Author - Webner
|
0 Comments
|

In Totara, we can group individual users as “Audience”. This can be done for the users who need to share same learning paths (Courses and Programs). This means we can create an audience and then add users as members to the audience. After that add courses and programs to this Read more…

Selenium | Uploading a file with WebElement and sendKeys

Author - Webner
|
0 Comments
|

How to upload files on webpage with selenium webdriver tool?

While uploading a file if it becomes difficult to handle the window dialog box to upload a file on a webpage we can use sendKeys method of WebElement. With sendkeys we have to provide local file path to file upload Read more…

Salesforce | Sort “wrapper class” objects alphabetically based on a String parameter

Author - Neha Mishra
|
0 Comments
|

Suppose we have a Wrapper class with fName as a string instance variable and we want to sort a list of objects alphabetically based on value of this variable.

1. Implement Comparable interface :
global class MyWrapperclass implements Comparable
{
public String fName {get;set;
}
public MyWrapperclass(String fullName)
{
fName=fullName;
}
public Read more…

Salesforce | Please use TLS 1.1 or higher when connecting to Salesforce using https

Author - Ashish

Salesforce login via PHP Salesforce Toolkit API may throw this exception:

Please use TLS 1.1 or higher when connecting to Salesforce using https

The reason is Salesforce has provided customers with the Critical Update feature Require TLS 1.1 or higher for HTTPS to maintain high Security. If you Read more…

Microsoft SQL Server | MySQL LIMIT equivalent in Microsoft SQL Server

Author - Kailash

Suppose you want to retrieve values from row from 5 to 10 from a table in SQL server. Since LIMIT keyword does not work in it so we can use any of these 2 alternative methods:

Solution 1 :

SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (ORDER BY name) as row FROM TableName Read more…

How to access Moodle files outside the Moodle?

Author - Shalini

We can access Moodle outside the Moodle (without login) by passing token in the URL.

For example :

http://localhost/Moodle_new/webservice/pluginfile.php/26/qtype_match/subquestion/17/5/6/PineApple.jpg?token=6yhg9331af9d9284abb36cyjh0c67114a

If token is not be passed into the URL, then it redirects to Moodle’s Read more…

Get Salesforce SObject name through Salesforce Record Id

Author - Webner
|
0 Comments
|

Description : We have Salesforce recordId but need to identify what is the type of Sobject corresponding to this record id.

Solution : We can get Sobject name from recordId with getSobjectType() function, sample code below:

Apex Code :

public void echoSObjectName(String RecID)
{
objName = RecID.getSobjectType();
System.debug(‘Object Name is ‘ + objName Read more…

CakePHP bake: SQLSTATE[42S02]: Base table or view not found

Author - Rita

While running cake bake command for cakephp 3.0 we got the following error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘tablename .columnname’ doesn’t exist

The culprit was a column with name test_id in one of the tables. As per bake command’s conventions about foreign Read more…

Salesforce | How to replace depreciated custom component ‘HTML Area’ for home page

Author - Webner
|
0 Comments
|

In the release of summer 14 Salesforce added the functionality of creating custom component for the home page.

In the past we were able to write HTML code in Salesforce using the HTML area under custom components on home page. For example if we needed to show RSS feed on Read more…

Selenium IDE | Test a form with multiple data sets

Author - Webner
|
0 Comments
|

If we have a Registration form and we want to test it with multiple datasets by using Selenium IDE then we have to follow these steps:

1. First, record the whole process of form filling with one set of data.

2. The data will be collected as shown Read more…

Salesforce | Convert DateTime to Epoch format

Author - Webner
|
0 Comments
|

In Salesforce apex code, we can use DateTime class methods to convert date and time to required format. And in one such case we needed to get Datetime in epoch format, also known as Unix TimeStamp for saving date and time.

To get the epoch from a datetime variable we Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Next page ›
Send your message