Netsuite | Invalid email address or account number error on NetSuite, but passed correct credentials

| By Webner

ERROR: Invalid email address or account number error on NetSuite, but passed correct credentials. Need to authenticate NetSuite sandbox account through java application and fetch all the contacts. Below is the link to the WSDL file used to log in:

Java | Delete empty string from list or array

| By Webner

public class deleteEmptyStringQuick { public static void main(String[] args) { String[] emptyStringArray={“test”,”test1″,””,”test3″,””,”test4″}; ArrayList arrayListOfEmptyString=(ArrayList) Arrays.asList(emptyStringArray); //normally we will do this ArrayList filteredList = new ArrayList(); for(String string: arrayListOfEmptyString) { if(!string.isEmpty()) { filteredList.add(string); } } //You can achieve this with single

Salesforce | Change value of an object’s field on button click and reload page

| By Webner

We can change the value of an object’s field on button click by using javascript like this (and this will also reload the page): { !REQUIRESCRIPT(“/soap/ajax/29.0/connection.js”) } var rec = new sforce.SObject(“Contact”); rec.Id = “{!Contact.Id}”; rec.IsActive= ‘true’; var result =

Java | Configure Tomcat as a service on linux

| By Webner

Configure Tomcat service in Linux: These instructions are related to installing and running Tomcat 7 as a service, which means that it will be launched at system boot and will be closed properly on system shutdown. Running tomcat as a

ACORD Forms autofill

| By Webner

We get this request from a lot of clients in US insurance industry who want to generate ACORD forms automatically, means they want data of corresponding insurance Policy and other objects filled automatically in the editable ACORD PDF. Most of

java.sql.SQLException: Data truncated for column date at row 1

| By Webner

You may face this exception while trying to insert data in a mysql table using hibernate: java.sql.SQLException: Data truncated for column date at row 1 While there can be different reasons of this problem, in our case it was occurring

Execute Javascript code on browser back button

| By Webner

Here is sample code to trap browser back button and execute Javascript code on this event: jQuery(document).ready(function($) { if (window.history && window.history.pushState) { $(window).on(‘popstate’, function() {//when back is clicked popstate event executes //code here will execute on back click });