Salesforce | Fatal error: Uncaught SoapFault exception: [sf:REQUEST_LIMIT_EXCEEDED] REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded

Author - Kiran Preet

Problem: “Fatal error: Uncaught SoapFault exception : [sf:REQUEST_LIMIT_EXCEEDED] REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded.”

In our case, this exception was raised while upserting records in Salesforce using PHPSFDC toolkit.

Solution: When our code exceeds API limit within Salesforce, it throws above exception. This is basically the total number of API calls that Read more…

Eclipse | Generate client for RPC based web services

Author - Rita

1. Select your project where you want to generate client code for your wsdl file:

2. Select File -> new -> other option from drop down menu as shown below:

Select web service client option from the drop down and click on next button.

3. Add your Wsdl URL to Read more…

Heroku | What to do when dyno worker crashes

Author - Manju Kashyap
|
0 Comments
|

Problem: What to do when your dyno worker crashes (Heroku)?

Description: We were working on an application made on Heroku. Once our site was not opening and it was throwing “Application Error”. When we checked logs we saw following error description:

Error:  Jan 2016 12:47:56.278 2016-01 Read more…

Salesforce | Passing value of the variables from Visualforce page to the controller

Author - Webner
|
0 Comments
|

Problem : Accessing value of the variables on Visualforce page within the Controller.

Solution: We can access the value of the variables in the Controller of the Visualforce page by declaring the variables in Controller as public and get, set types like public type var1 {get;set;}

Example:

public class exampleContoller Read more…

How to add slow blur effect using jquery and css

Author - Neelam
|
0 Comments
|

Suppose you have to blur this image:

To show it like this and this blur effect should be gradual:

This is one solution to achieve this:

$(document).ready(function()
{
animationTime();
});

function slowblur(number)
{
$(‘#firstimage’).css({‘filter’:’blur(‘+number+’px)’,’-webkit-filter’: ‘blur(‘+number+’px)’,’-moz-filter’: ‘blur(‘+number+’px)’,
‘-o Read more…

Favicon not showing up in Google Chrome

Author - Neelam
|
0 Comments
|

We faced a problem in Chrome when all other browsers were properly showing favicon but not the chrome browser.

The reason was our HTML was not proper. Above tag we had some extra HTML code written which should be inside tag, something like this:
<div id=”menulist”>
&lt Read more…

Heroku | How to find Configuration details for Heroku app

Author - Webner
|
0 Comments
|

In Heroku, every app has its own configuration variables like GIT URL, database host, database URL, database username and Password etc. We can find this information by following the steps below:

1. Login to Heroku dashboard.
2. Click the app name to open the app.
3. Navigate to Read more…

HTML| Anchor Tag | How to link to a specific section of the page

Author - Webner
|
0 Comments
|

In HTML, if one needs to create a link that redirects to a specific section of that page, following steps must be followed:

1.Give unique id to the section of HTML page where you want the link to be redirected to. In the example below, we
want Read more…

Eclipse | Force.com | Invalid Force.com plugin version for eclipse

Author - Webner
|
0 Comments
|

We had successfully installed the Force.com plugin in eclipse with the latest version. We were trying to import the project for a particular org. Eclipse asked for the organisation’s credentials and the details. Even on submitting the correct details eclipse was unable to fetch the details of the Read more…

SQL Server / MySQL | Combine data from multiple rows into a single row

Author - Webner

We have data as below:

We need output like this:

Solution:
For SQL server
STUFF function is the key here:
SELECT Id,STUFF(
(
SELECT distinct ‘ ‘ + cast(Name as varchar(500)) from table1 t2 where t1.Id = t2.Id FOR XML PATH(”), TYPE ).value(‘.’, ‘NVARCHAR(MAX)’) ,1 Read more…

WordPress | Unable to access admin panel for the WordPress site

Author - Webner
|
0 Comments
|

The problem was because of the plugin named “ITheme Security”. When plugin was enabled, the wp-admin panel did not work and gave the following error:

404 page not Found Error.

On disabling this plugin, admin panel worked fine. But disabling this plugin was not the permanent solution Read more…

Salesforce | How to set value of input text field on parent Visualforce Page using Javascript

Author - Webner

Description: We had a text field (inputTextF) on our parent page. We wanted to set its value from inside my child page programmatically.

1. You need to pass parent page element Id to the child page.

2. Get parent page element Id on child page using CurrentPage.parameters Read more…

Selenium | Unable to find Command button using Selenium Webdriver

Author - Webner

Problem: Unable to find the Command button using Selenium Webdriver.

Solution: You can use following script code if you want to find command button on a web page and then click it:
driver.findElement(By.xpath(“//button[text()='(Button name)’]”)).click();
Here is the script which we used in Webdriver Read more…

Ubuntu | Rsync

Author - Rita

Ubuntu provides a very useful command rsync that allows faster way to copy modified files from one location to another. It can work between 2 remote locations or even within local folders. First time rsync downloads all the files but when this command is executed next time, it will download Read more…

Salesforce | How to add page header image in a visualforce page?

Author - Webner
|
0 Comments
|

We can add the page header image in a visualforce page using following apex tag:

<apex:image id=”” value=”” width=”” height=””/>

In “value” Field of tag we give the url of the image where image is located. Image may be located in static resources in Salesforce or somewhere Read more…

Salesforce | System.VisualforceException: Getting content from within triggers not supported

Author - Webner
|
1 Comment
|

Problem: System.VisualforceException: Getting content from within triggers is currently not supported.

Description: This Visualforce exception occurs when we use getContent method in the trigger of sobject.

Here is the code for which we got this exception:

Trigger code:
trigger updateStatus on sobject (before update) {
List List = new List();
for Read more…

Page break in PDF not working when table is created in loop

Author - Webner
|
0 Comments
|

Problem: Page break in PDF was not working when table was created in loop. We wanted to have certain amount of rows on same page. If there was not enough space then next set of rows automatically shifted to the next page.

Solution: We can not use the page break Read more…

Moodle | Flash SCORM modules not showing content on shared hosting

Author - Webner

We faced a problem that Scorm content packages uploaded in Moodle were not displaying content correctly on shared hosting server. After entering the Quiz the page was redirecting back to the same page rather than displaying the further pages of the quiz. The reason was cgi.fix_pathinfo property having value Read more…

Moodle | Assign users as site administrators in Moodle/Totara

Author - Webner
|
0 Comments
|

In Moodle, we can allow users to have administrative access to site. We can enable users for this access by using the following steps:

1. Navigate to Site Administration > Users > Permissions.
2. Click on the Site administrators link.
3. It will open the settings page to Read more…

WordPress accessing custom fields in code

Author - Kajal Marwaha
|
0 Comments
|

In WordPress you can use following code for accessing value of custom fields:

$key_name = get_post_custom_values($key = ‘Key Name’);
echo $key_name;//display the value
Here ‘key name’ is name of the custom field.
get_post_custom_values() is a function in WordPress, which is used to get the custom value of a field which 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 39 40 41 Next page ›
Send your message