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 =

Generate getter/setter for PHP Classes in Eclipse

| By Webner

Using PHPGen Eclipse plug-in one can automatically generate getter /setter methods for instance variables. Note: This Plugins is not available in Eclipse Marketplace. Steps For Installation: Start Eclipse and add “Help> Install New Software” from following URL: http://loge5.de/downloads/Eclipse/: Click Add,

jQuery | Click event does not work on dynamically created HTML elements

| By Webner

Solution: Suppose we have the following HTML and jQuery code: HTML: <div id=”container”> <button id=”1″ class=”createNewElement”>Button</button> </div> jQuery: $(‘.createNewElement’).click(function(e) { alert(“Element with id ” + $(this).attr(‘id’) + ” is clicked!”); // tells id of button clicked newElementId = parseInt($(‘div button’).last().attr(‘id’)) +

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

How to use SimpleSAMLPhp as a Service Provider for authenticating users?

| By Webner

How to use SimpleSAMLPhp as a Service Provider for authenticating users? Some Basic steps to start using simplesamlphp. 1. Download stable version of SimpleSAMLphp from this link: Click here 2. Go to the directory or your workspace where you want