Salesforce | How to edit salesforce Created Date and Last Modified Date field values?

Author - Shalini
|
0 Comments
|

Created Date and Last Modified Date fields in Salesforce objects are audit fields and we can’t edit or change these field directly or through code. You have to contact salesforce support team for them to grant permissions to you to edit or change these fields if needed.

Just create Read more…

Moodle | Fetch activities in same order in which they are listed on Course Page

Author - Neha Mishra
|
0 Comments
|

There is a functionality on Moodle course page that activities can be dragged up and down to change their order after turning on the edit button. If in the code you need to pull the activities in same order for a course then following code can help you :
$mods = $modinfo Read more…

Salesforce | Using Javascript to set value in parent Visualforce page field

Author - Webner

Suppose you have a Visualforce page with a form and you have a link to open a popup. The page loaded in popup needs to set a value back into a textbox in the parent page. Here is how you can achieve this:
This is sample code of the parent Read more…

SFTP to server using FileZilla without password

Author - Webner
|
0 Comments
|

We can connect to a remote server via SFTP without password, using PEM file of server. The PEM file is public key certificate file of the server to which we have to connect. We’ll need to have following details in this case:

hostname
username
.pem file

Steps :

1. Open Read more…

Salesforce | Field Visibility Issue

Author - Webner
|
Comments off
|

If you want to programmatically read values of certain fields, those field must be visible in the layout. To change field visibility follow these steps:

1. Login and click on setup link.
2. Click Security Controls in Administrator menu.

3. Click on Field Accessibility.

4. Click on the object name Read more…

Mysql | How to drop table having dot (.) in the table name in MySQL

Author - Rita

We had a table in our database having dot in the table name as below:

Table name – kpc.product_categories

On trying to delete kpc.product_categories using below command:

drop table kpc.product_categories

It used to give error that no such table exists.

Dot(.) is the reserved symbol in mysql so Read more…

Eclipse | How to change or recover Secure Storage Password for Eclipse Kepler

Author - Webner
|
0 Comments
|

When we add Salesforce project to Eclipse sometimes it asks for ‘Secure Storage Password’. You can try to enter your system password. If it doesn’t works you can change or recover ‘Secure Storage Password’. According to office eclipse documentation.

The secure storage saves data in an encrypted form. On Read more…

Salesforce | Overriding Standard button functionality

Author - Webner
|
0 Comments
|

We needed to extend a default functionality of standard salesforce page and buttons on this page. That is we needed to display some custom buttons and fields on the standard page and perform our own logic for these. The Object for which we needed to modify functionality was Event. SInce Read more…

Heroku | How to delete prior database backups

Author - Namisha

Following are the steps to delete the Postgres database backup:

1. Login into heroku.

2. Click on the database>PG Backups. Here you can see all the PG backups list.

3. . For deleting the database, first of all you have to install the toolbelt.

You can download Toolbelt from Read more…

Eclipse – Java decompiler (jd-eclipse)

Author - Rita

If you are working with eclipse IDE, it provides many plugins and one of them is java decompiler. This plugin will decompile all your class files to give you Java source code.
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java Read more…

Cakephp | URL routing using prefix before domain name

Author - Webner

Routes in an application are configured in app/Config/routes.php. Defining your own routes allows you to define where your application will take the control to for a given URL.

Default routing is like this:

domain/controller/action
Ex. www.xyz.com/user/login
Prefix routing will Read more…

Salesforce | Maximum view state size limit (135KB) exceeded

Author - Shalini
|
2 Comments
|

We have a page in which we have to display more than 50000 records. Visualforce page has View state Limit set to 135 KB hence after reaching this Limit salesforce throws Exception as “Maximum view state size limit (135KB) exceeded”.

Solution: To resolve this issue Read more…

WAMP | Not starting after SSL setup

Author - Webner
|
0 Comments
|

Problem: After importing SSL certificate files to the server where the CSR was generated, Wamp was failing to start.

Solution: This problem occurs because passphrase does not match the given csr key. The solution is before sending the ssl CSR Read more…

Zoho CRM | Reduce API call consumption

Author - Webner

This is a simple idea to reduce API calls consumption when you pull data from Zoho CRM into an integrated piece of code (like server side code in PHP or Java that connects to Zoho CRM to retrieve records). In one of the projects we were working on, we had Read more…

Run embedded batch files

Author - Kiran Preet

In one of the projects we had a batch file which runs another batch file within it in a loop. This was not working. It used to run once and then used to get stuck.

This is sample code of the outer batch file:

outer.bat:
cd/
cd Read more…

PHP | Clone arrays containing objects

Author - Webner

In PHP you need deep cloning to clone arrays containing objects.

Suppose we have $cold_items as an array of objects. To clone it appropriately so that while changing the values in one array does not impact the other one, use code like this:
$clonedArray = array();
foreach ($cold_items as Read more…

Java | Shallow and Deep comparison of objects

Author - Webner

There are two types of object comparison in java – shallow and deep.

when you use ‘==’ operator, you are comparing the references for equality. It means you are comparing memory addresses of the objects. It is called shallow comparison.

When you use .equals() you are comparing the object values themselves for Read more…

Call third party JSON webservice in cakephp 3.0

Author - Webner

To call third-party web service in CakePHP 3.0. You can use Http client available in CakePHP core lib (CakeNetworkHttpClient).

Include CakeNetworkHttpClient in your controller.
use CakeNetworkHttpClient;

Here is the method to call third-party web service. You can use this method on any controller. Data should be in Read more…

Cakephp | URL routing using prefix after domain name

Author - Webner

Routes in an application are configured in app/Config/routes.php. Defining your own routes allows you to define where your application will take the control to for a given URL.

Default routing is like this:

domain/controller/action
Ex. www.xyz.com/user/login

Prefix routing will add a Read more…

Firefox not responding

Author - Manju Kashyap
|
0 Comments
|

If you are trying to open a URL in Firefox but it is into long loading cycle and eventually stops responding, then you can try solution given here.

This issue can be caused by corrupt cookies or cache. In order to try to fix this problem clear both cookies and 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