<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Shiva Blog</title>
	
	<link>http://shivasoft.in/blog</link>
	<description>Explore your knowledge and share with world</description>
	<lastBuildDate>Sat, 25 Feb 2012 12:04:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/shivasoft/home" /><feedburner:info uri="shivasoft/home" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><feedburner:emailServiceId>shivasoft/home</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>New Release – Website dedicated to Salesforce Certification Mock Test</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/-V_doiUTG3M/</link>
		<comments>http://shivasoft.in/blog/salesforce/new-release-website-dedicated-to-salesforce-certification-mock-test/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 11:56:24 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2725</guid>
		<description><![CDATA[New Release - Website for Salesforce certification preparation - free Mock Tests , Interview Questions for Salesforce
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/step-by-step-salesforce-tutorial-%e2%80%93-creating-trigger-and-test-cases-%e2%80%93-6-of-6/' rel='bookmark' title='Step by Step Salesforce Tutorial – Creating Trigger and Test cases – 6 of 6'>Step by Step Salesforce Tutorial – Creating Trigger and Test cases – 6 of 6</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions/' rel='bookmark' title='Salesforce Interview Questions &#8211; Part 1'>Salesforce Interview Questions &#8211; Part 1</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/' rel='bookmark' title='Getting record from other Salesforce organization OR communication between multiple salesforce organization'>Getting record from other Salesforce organization OR communication between multiple salesforce organization</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/ATYN9n_GPlIQoPSEzceaS09mBKk/0/da"><img src="http://feedads.g.doubleclick.net/~a/ATYN9n_GPlIQoPSEzceaS09mBKk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ATYN9n_GPlIQoPSEzceaS09mBKk/1/da"><img src="http://feedads.g.doubleclick.net/~a/ATYN9n_GPlIQoPSEzceaS09mBKk/1/di" border="0" ismap="true"></img></a></p><p>Hi Friends,<br />
I am very pleased to inform you all that i have created a new website for the mock test, specially for the Salesforce Certifications.<br />
Please have a look and suggest any idea or modifications needed to enhance the functionality of the website. <span style="text-decoration: underline;"><strong>The questions on the website are not from actual exam</strong></span>, instead it will help to brush up the skills for Salesforce certification and also for interview preparations.</p>
<p style="text-align: center;"><strong><a title="Salesforce certification Mock Test" href="http://shivasoft.in/quiz/index.php">New Website URL &#8211; Salesforce Certification Mock Test</a></strong></p>
<p><strong>Screens Shots:</strong><br />
<span id="more-2725"></span></p>
<div id="attachment_2726" class="wp-caption aligncenter" style="width: 680px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/02/Salesforce-Mock-Test-Front-Page.png"><img class=" wp-image-2726 " title="Salesforce Mock Certification Test - Front Page" src="http://shivasoft.in/blog/wp-content/uploads/2012/02/Salesforce-Mock-Test-Front-Page.png" alt="Salesforce Mock Certification Test - Front Page" width="670" height="331" /></a><p class="wp-caption-text">Salesforce Mock Certification Test - Front Page</p></div>
<div id="attachment_2727" class="wp-caption aligncenter" style="width: 565px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/02/Salesforce-Mock-Test-Questions.png"><img class=" wp-image-2727 " title="Salesforce Certification Mock Test - Questions" src="http://shivasoft.in/blog/wp-content/uploads/2012/02/Salesforce-Mock-Test-Questions.png" alt="Salesforce Certification Mock Test - Questions" width="555" height="196" /></a><p class="wp-caption-text">Salesforce Certification Mock Test - Questions</p></div>
<p>In the near future, i am going to add the mock tests for Java as well as .Net also to help the preparation of Salesforce.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/step-by-step-salesforce-tutorial-%e2%80%93-creating-trigger-and-test-cases-%e2%80%93-6-of-6/' rel='bookmark' title='Step by Step Salesforce Tutorial – Creating Trigger and Test cases – 6 of 6'>Step by Step Salesforce Tutorial – Creating Trigger and Test cases – 6 of 6</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions/' rel='bookmark' title='Salesforce Interview Questions &#8211; Part 1'>Salesforce Interview Questions &#8211; Part 1</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/' rel='bookmark' title='Getting record from other Salesforce organization OR communication between multiple salesforce organization'>Getting record from other Salesforce organization OR communication between multiple salesforce organization</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=-V_doiUTG3M:l0EVEELfNEY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=-V_doiUTG3M:l0EVEELfNEY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=-V_doiUTG3M:l0EVEELfNEY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=-V_doiUTG3M:l0EVEELfNEY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=-V_doiUTG3M:l0EVEELfNEY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=-V_doiUTG3M:l0EVEELfNEY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/-V_doiUTG3M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/new-release-website-dedicated-to-salesforce-certification-mock-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/new-release-website-dedicated-to-salesforce-certification-mock-test/</feedburner:origLink></item>
		<item>
		<title>Handling Colon in Element ID in JQuery – Visualforce problem</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/_lwhjzfOW7k/</link>
		<comments>http://shivasoft.in/blog/others/tips/handling-colon-in-element-id-in-jquery-visualforce-problem/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 19:25:12 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Visualforce]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2706</guid>
		<description><![CDATA[Resolving the JQuery error when the Element ID contains colon with Live Demo
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/web/highlight-current-field-using-jquery/' rel='bookmark' title='Highlight Current field using JQuery'>Highlight Current field using JQuery</a></li>
<li><a href='http://shivasoft.in/blog/webtech/creating-json-parser-using-jquery/' rel='bookmark' title='Creating JSON Parser Using JQuery'>Creating JSON Parser Using JQuery</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/disable-inputs-after-submit-to-avoid-double-submission-using-jquery-and-ajax/' rel='bookmark' title='Disable inputs after submit to avoid double submission using JQuery and Ajax'>Disable inputs after submit to avoid double submission using JQuery and Ajax</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/KYscMV6cAMPs08FL4OdraKR8Hy0/0/da"><img src="http://feedads.g.doubleclick.net/~a/KYscMV6cAMPs08FL4OdraKR8Hy0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KYscMV6cAMPs08FL4OdraKR8Hy0/1/da"><img src="http://feedads.g.doubleclick.net/~a/KYscMV6cAMPs08FL4OdraKR8Hy0/1/di" border="0" ismap="true"></img></a></p><p style="text-align: justify;">Today i came across very known problem of jQuery and thought of sharing same with everyone. In Salesforce the element id is in the format of &#8220;<strong>j_id0:j_id3:j_id4:c_txt</strong>&#8220;. In previous post we have already discussed about getting <a title="Get Element ID in Visualforce - Salesforce" href="http://shivasoft.in/blog/salesforce/get-dom-elementid-of-the-visualforce-components/" target="_blank">the elementId in Visualforce</a>.<br />
When i tried to find the element in JQuery like <strong>$(&#8216;#j_id0:j_id3:j_id4:c_txt&#8217;)</strong>, i was getting the error on JavaScript console of the browser. After few searches, i got to know that this is known problem and faced by many of the developers.</p>
<h2 style="text-align: left;"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/02/HandlingColoninJQuery.htm">Live Demo</a></h2>
<p style="text-align: justify;"><span id="more-2706"></span>So here i came with few workarounds as follow:</p>
<p><strong>1. Using Traditional JavaScript:</strong><br />
This was the first option in mind and worked very well. We have to use it very straightforward as always,</p>
<pre class="brush: jscript; title: ; notranslate">
var ele = document.getElementById(&quot;abc:xyz&quot;);
</pre>
<p><strong>2. Using JQuery Approach 1:</strong><br />
In this approach instead of searching by $(&#8220;#abc:xyz&#8221;), we have to search like</p>
<pre class="brush: jscript; title: ; notranslate">
var ele = $('[id=&quot;abc:xyz&quot;]');
</pre>
<p><strong>3. Using JQuery Approach 2:</strong><br />
Use double slash &#8220;\\&#8221; in front of colon which will work as escape sequence</p>
<pre class="brush: jscript; title: ; notranslate">
var ele = $(&quot;#abc\\:xyz&quot;);
</pre>
<p><strong>4. Using JQuery and JavaScript both:</strong><br />
We will find the element by traditional JavaScript and then assign it to the JQuery like</p>
<pre class="brush: jscript; title: ; notranslate">
var ele = document.getElementById('abc:xyz');
ele = $(ele).val();
</pre>
<p><span style="text-decoration: underline;">Complete Source Code demonstrating the scenario:</span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;
Handling Colon in Element ID in JQuery | ShivaSoft
&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js&quot;&gt;&lt;/script&gt;
&lt;style&gt;
.myButton {
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
	background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
	background-color:#ededed;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #dcdcdc;
	display:inline-block;
	color:#777777;
	font-family:arial;
	font-size:15px;
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:1px 1px 0px #ffffff;
	cursor:pointer;
}.myButton:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
	background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
	background-color:#dfdfdf;
}.myButton:active {
	position:relative;
	top:1px;
}
code
{
	color:green;
}
.error
{
	color:red;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input value=&quot;ShivaSoft&quot; type=&quot;text&quot; size=&quot;30&quot; id=&quot;abc:xyz&quot; /&gt; &lt;br /&gt;
&lt;input class=&quot;myButton&quot; type=&quot;button&quot; value=&quot;Clear Ans&quot; onclick=&quot;clearAns()&quot; /&gt;
&lt;br /&gt;

&lt;input class=&quot;myButton&quot; type=&quot;button&quot; value=&quot;Simple jQuery&quot; onclick=&quot;simpleJQuery()&quot; /&gt;
Using &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;error&quot;&gt;$(&quot;#abc:xyz&quot;)&lt;/code&gt;
&lt;br /&gt;

&lt;input class=&quot;myButton&quot; type=&quot;button&quot; value=&quot;Traditional JS&quot; onclick=&quot;simpleJS()&quot; /&gt;
Using &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code&gt; document.getElementById(&quot;abc:xyz&quot;)&lt;/code&gt;
&lt;br /&gt;

&lt;input class=&quot;myButton&quot; type=&quot;button&quot; value=&quot;JQuery-Approach1&quot; onclick=&quot;app1()&quot; /&gt;
Using &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code&gt;$('[id=&quot;abc:xyz&quot;]')&lt;/code&gt;
&lt;br /&gt;

&lt;input class=&quot;myButton&quot; type=&quot;button&quot; value=&quot;JQuery-Approach2&quot; onclick=&quot;app2()&quot; /&gt;
Using double slash (Escape sequence) in front of colon &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code&gt;$(&quot;#abc\\:xyz&quot;)&lt;/code&gt;
&lt;br /&gt;

&lt;input class=&quot;myButton&quot; type=&quot;button&quot; value=&quot;JQuery-Approach3&quot; onclick=&quot;app3()&quot; /&gt;
This is workaround. Get element by Javascript and pass to jQuery  &amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;code&gt;
&lt;pre&gt;
	var ans = document.getElementById('abc:xyz');
	ans = $(ans).val();
&lt;/pre&gt;
&lt;/code&gt;
&lt;br /&gt;

&lt;hr /&gt;
Output -
&lt;div id=&quot;divOut&quot; style=&quot;background-color:yellow&quot; /&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

function app3()
{
	clearAns();
	var ans = document.getElementById('abc:xyz');
	ans = $(ans).val();
	printAns(ans);
}

function app2()
{
	clearAns();
	var ans = $(&quot;#abc\\:xyz&quot;).val();
	printAns(ans);
}

function app1()
{
	clearAns();
	var ans = $('[id=&quot;abc:xyz&quot;]').val();
	printAns(ans);
}

function simpleJQuery()
{
	clearAns();
	var ans = $(&quot;#abc:xyz&quot;).val();
	printAns(ans);
}

function simpleJS()
{
	clearAns();
	var ans = document.getElementById(&quot;abc:xyz&quot;).value;
	printAns(ans);
}

function clearAns()
{
	$(&quot;#divOut&quot;).html('');
}
function printAns(ans)
{
	var ansDiv = $(&quot;#divOut&quot;);
	ansDiv.html(ans);
	ansDiv.css(&quot;background-color&quot;,randColor());
}
function randColor()
{
    colors = ['orange', '#ccc', 'blue', 'green','yellow','lightGreen']
    return colors[Math.floor(Math.random()*colors.length)];
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h2><a href="http://shivasoft.in/blog/wp-content/uploads/2012/02/HandlingColoninJQuery.htm">Live Demo</a></h2>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/web/highlight-current-field-using-jquery/' rel='bookmark' title='Highlight Current field using JQuery'>Highlight Current field using JQuery</a></li>
<li><a href='http://shivasoft.in/blog/webtech/creating-json-parser-using-jquery/' rel='bookmark' title='Creating JSON Parser Using JQuery'>Creating JSON Parser Using JQuery</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/disable-inputs-after-submit-to-avoid-double-submission-using-jquery-and-ajax/' rel='bookmark' title='Disable inputs after submit to avoid double submission using JQuery and Ajax'>Disable inputs after submit to avoid double submission using JQuery and Ajax</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=_lwhjzfOW7k:VZ90p2dmtyA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=_lwhjzfOW7k:VZ90p2dmtyA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=_lwhjzfOW7k:VZ90p2dmtyA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=_lwhjzfOW7k:VZ90p2dmtyA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=_lwhjzfOW7k:VZ90p2dmtyA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=_lwhjzfOW7k:VZ90p2dmtyA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/_lwhjzfOW7k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/others/tips/handling-colon-in-element-id-in-jquery-visualforce-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/others/tips/handling-colon-in-element-id-in-jquery-visualforce-problem/</feedburner:origLink></item>
		<item>
		<title>How to create Immutable Class in Java</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/WcxkA-v6LkY/</link>
		<comments>http://shivasoft.in/blog/java/how-to-create-immutable-class-in-java/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:34:46 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[final]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2700</guid>
		<description><![CDATA[creating the Immutable class in Java with simple source code example
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/java/immutable-nature-of-string-java/' rel='bookmark' title='Immutable nature of String &#8211; JAVA'>Immutable nature of String &#8211; JAVA</a></li>
<li><a href='http://shivasoft.in/blog/java/create-soap-message-using-java/' rel='bookmark' title='Create SOAP message using Java'>Create SOAP message using Java</a></li>
<li><a href='http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/' rel='bookmark' title='Create SNMP Client in JAVA Using SNMP4j'>Create SNMP Client in JAVA Using SNMP4j</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Tmt9slqgm5xrsycgkaipmowL7-k/0/da"><img src="http://feedads.g.doubleclick.net/~a/Tmt9slqgm5xrsycgkaipmowL7-k/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Tmt9slqgm5xrsycgkaipmowL7-k/1/da"><img src="http://feedads.g.doubleclick.net/~a/Tmt9slqgm5xrsycgkaipmowL7-k/1/di" border="0" ismap="true"></img></a></p><p style="text-align: justify;">We have heard the word &#8220;<strong>Immutable class</strong>&#8221; lots of time in Java. The best example is class &#8220;<strong><a title="Immutable nature of string" href="http://shivasoft.in/blog/java/immutable-nature-of-string-java/" target="_blank">String</a></strong>&#8220;. Immutable class is the class whose value cannot be changed throughout the life cycle. We cannot change the content of String class, everytime new reference is created when we change the content, that is the basic difference between <strong>String</strong> and <strong>StringBuffer</strong> Class.<br />
In this article, i will explain the step by step process to create the custom Immutable class in Java.<br />
Our class should not able to derived and for that we will declare our class as final. The values cannot be change and thats why we will declare all the variables as final and we will provide only the getter methods as we cannot write setters because of final variables.<br />
So to summarize, following steps needs to be taken:<span id="more-2700"></span></p>
<ol>
<li><strong>declare class as final</strong></li>
<li><strong>declare all variables as final</strong></li>
<li><strong>provide constructor to set the values</strong></li>
<li><strong>provide getter</strong></li>
</ol>
<p>Source code:</p>
<pre class="brush: java; title: ; notranslate">
package in.shivasoft.demo;

final class Immutable
{
	private final int val1;
	private final String val2;

	public Immutable(int a, String s)
	{
		val1 = a;
		val2 = s;
	}
	public int getVal1()
	{
		return val1;
	}
	public String getVal2()
	{
		return val2;
	}
}

public class ImmutableClassDemo {
	public static void main(String[] args) {
		Immutable obj = new Immutable(10, &quot;ShivaSoft ...the supreme solution&quot;);
		System.out.println(obj.getVal1());
		System.out.println(obj.getVal2());
	}
}
</pre>
<p>Output :</p>
<blockquote><p>10<br />
ShivaSoft &#8230;the supreme solution</p></blockquote>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/java/immutable-nature-of-string-java/' rel='bookmark' title='Immutable nature of String &#8211; JAVA'>Immutable nature of String &#8211; JAVA</a></li>
<li><a href='http://shivasoft.in/blog/java/create-soap-message-using-java/' rel='bookmark' title='Create SOAP message using Java'>Create SOAP message using Java</a></li>
<li><a href='http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/' rel='bookmark' title='Create SNMP Client in JAVA Using SNMP4j'>Create SNMP Client in JAVA Using SNMP4j</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=WcxkA-v6LkY:QcL7gCAXBSk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=WcxkA-v6LkY:QcL7gCAXBSk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=WcxkA-v6LkY:QcL7gCAXBSk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=WcxkA-v6LkY:QcL7gCAXBSk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=WcxkA-v6LkY:QcL7gCAXBSk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=WcxkA-v6LkY:QcL7gCAXBSk:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/WcxkA-v6LkY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/java/how-to-create-immutable-class-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/java/how-to-create-immutable-class-in-java/</feedburner:origLink></item>
		<item>
		<title>Create SOAP message using Java</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/OaUiXV_QZ9w/</link>
		<comments>http://shivasoft.in/blog/java/create-soap-message-using-java/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 17:46:37 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2691</guid>
		<description><![CDATA[Step by Step Example of creating SOAP Message using core Java API
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/' rel='bookmark' title='Create SNMP Client in JAVA Using SNMP4j'>Create SNMP Client in JAVA Using SNMP4j</a></li>
<li><a href='http://shivasoft.in/blog/java/how-to-create-immutable-class-in-java/' rel='bookmark' title='How to create Immutable Class in Java'>How to create Immutable Class in Java</a></li>
<li><a href='http://shivasoft.in/blog/java/create-xml-file-using-jaxp-and-transformation-apis/' rel='bookmark' title='Create XML File using DOM Parser of JAXP and Transformation APIs'>Create XML File using DOM Parser of JAXP and Transformation APIs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/MUjUY9FcjfRQ_eSk0R7QjqetrVo/0/da"><img src="http://feedads.g.doubleclick.net/~a/MUjUY9FcjfRQ_eSk0R7QjqetrVo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MUjUY9FcjfRQ_eSk0R7QjqetrVo/1/da"><img src="http://feedads.g.doubleclick.net/~a/MUjUY9FcjfRQ_eSk0R7QjqetrVo/1/di" border="0" ismap="true"></img></a></p><p>In this article, i am going to create the <a title="What is SOAP in Webservice" href="http://en.wikipedia.org/wiki/SOAP" target="_blank">SOAP </a>Message by using core Java Only. SOAP Stands for &#8221; Simple Object Access Protocol&#8221;, which is used to exchange the structured information via <a title="What is Web Services" href="http://en.wikipedia.org/wiki/Web_Service" target="_blank">Webservices</a>.</p>
<p>SOAP Message consist of following three parts:</p>
<ol>
<li>SOAP-ENV:Envelope</li>
<li>SOAP-ENV:Header</li>
<li>SOAP-ENV:Body</li>
</ol>
<div id="attachment_2694" class="wp-caption aligncenter" style="width: 230px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/02/SOAP.png"><img class="size-full wp-image-2694" title="SOAP Message Format for Web Services" src="http://shivasoft.in/blog/wp-content/uploads/2012/02/SOAP.png" alt="SOAP Message Format for Web Services" width="220" height="235" /></a><p class="wp-caption-text">SOAP Message Format for Web Services</p></div>
<p><span id="more-2691"></span>To create the SOAP, first we will need to create the object of &#8220;<strong>javax.xml.soap.MessageFactory</strong>&#8220;, then create object of &#8220;<strong>javax.xml.soap.SOAPMessage</strong>&#8220;. This object of &#8220;SOAPMessage&#8221; will have all the messages inside it in &#8220;<strong>javax.xml.soap.SOAPEnvelope</strong>&#8221; object. Every &#8220;Envelope&#8221; will have the &#8220;Header&#8221; and &#8220;Body&#8221; as shown in below program:</p>
<pre class="brush: csharp; title: ; notranslate">
package com.service.SOAPMain;

import java.io.FileOutputStream;

import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;

public class CreateSOAPMessage {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try{
			MessageFactory factory = MessageFactory.newInstance();
			SOAPMessage soapMsg = factory.createMessage();
			SOAPPart part = soapMsg.getSOAPPart();

			SOAPEnvelope envelope = part.getEnvelope();
			SOAPHeader header = envelope.getHeader();
			SOAPBody body = envelope.getBody();

			header.addTextNode(&quot;Training Details&quot;);

			SOAPBodyElement element = body.addBodyElement(envelope.createName(&quot;JAVA&quot;, &quot;training&quot;, &quot;http://shivasoft.in/blog&quot;));
			element.addChildElement(&quot;WS&quot;).addTextNode(&quot;Training on Web service&quot;);

			SOAPBodyElement element1 = body.addBodyElement(envelope.createName(&quot;JAVA&quot;, &quot;training&quot;, &quot;http://shivasoft.in/blog&quot;));
			element1.addChildElement(&quot;Spring&quot;).addTextNode(&quot;Training on Spring 3.0&quot;);

			soapMsg.writeTo(System.out);

			FileOutputStream fOut = new FileOutputStream(&quot;SoapMessage.xml&quot;);
			soapMsg.writeTo(fOut);

			System.out.println();
			System.out.println(&quot;SOAP msg created&quot;);

		}catch(Exception e){
			e.printStackTrace();
		}

	}

}
</pre>
<p>As the output, one xml file of named &#8220;SoapMessage.xml&#8221; will be created and also printed on the console.</p>
<div id="attachment_2695" class="wp-caption aligncenter" style="width: 586px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/02/SOAP-Messsage-Output-Java.png"><img class="size-full wp-image-2695" title="SOAP Messsage Output - Java" src="http://shivasoft.in/blog/wp-content/uploads/2012/02/SOAP-Messsage-Output-Java.png" alt="SOAP Messsage Output - Java" width="576" height="173" /></a><p class="wp-caption-text">SOAP Messsage Output - Java</p></div>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/' rel='bookmark' title='Create SNMP Client in JAVA Using SNMP4j'>Create SNMP Client in JAVA Using SNMP4j</a></li>
<li><a href='http://shivasoft.in/blog/java/how-to-create-immutable-class-in-java/' rel='bookmark' title='How to create Immutable Class in Java'>How to create Immutable Class in Java</a></li>
<li><a href='http://shivasoft.in/blog/java/create-xml-file-using-jaxp-and-transformation-apis/' rel='bookmark' title='Create XML File using DOM Parser of JAXP and Transformation APIs'>Create XML File using DOM Parser of JAXP and Transformation APIs</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=OaUiXV_QZ9w:0y53xvwrm4s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=OaUiXV_QZ9w:0y53xvwrm4s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=OaUiXV_QZ9w:0y53xvwrm4s:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=OaUiXV_QZ9w:0y53xvwrm4s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=OaUiXV_QZ9w:0y53xvwrm4s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=OaUiXV_QZ9w:0y53xvwrm4s:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/OaUiXV_QZ9w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/java/create-soap-message-using-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/java/create-soap-message-using-java/</feedburner:origLink></item>
		<item>
		<title>Salesforce Interview Questions – Part 5</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/v8stddy1ejE/</link>
		<comments>http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 19:35:58 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Apex]]></category>
		<category><![CDATA[Force.com]]></category>
		<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Visualforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2681</guid>
		<description><![CDATA[Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL
No related posts.]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/5dMcpNb2e8GGrYMOSbn-aZsvWzY/0/da"><img src="http://feedads.g.doubleclick.net/~a/5dMcpNb2e8GGrYMOSbn-aZsvWzY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5dMcpNb2e8GGrYMOSbn-aZsvWzY/1/da"><img src="http://feedads.g.doubleclick.net/~a/5dMcpNb2e8GGrYMOSbn-aZsvWzY/1/di" border="0" ismap="true"></img></a></p><div style="background-color: #f5e2ba; border: 1px solid #ccc; width: 100%; padding-top: 10px; margin-top: 10px; color: #140b5c;">
<p><a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 1" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions/" target="_blank"> Part &#8211; 1</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 2" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions-%E2%80%93-part-2/" target="_blank">Part &#8211; 2</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 3" href="http://shivasoft.in/blog/tips/salesforce-interview-questions-%E2%80%93-part-3/" target="_blank"> Part &#8211; 3</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 4 - Dynamic Apex" href="http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/" target="_blank">Part &#8211; 4 &#8211; Dynamic Apex</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 5" href="http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/" target="_blank">Part &#8211; 5 </a></p>
</div>
<p><strong>40. What is Master Detail relationship and look up relationship in Salesforce?</strong><br />
<strong> Ans:</strong><br />
Master Detail relationship is the<strong> Parent child relationship</strong>. In which Master represents Parent and detail represents Child. If Parent is deleted then Child also gets deleted. Rollup summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records.<br />
Look up relationship is something like <strong>&#8220;has-a&#8221; (Containership) relationship</strong>. Where one record has reference to other records. When one record is deleted then there is no impact on other records.</p>
<hr />
<p><strong>41. Can we convert the lookup relationship to Master Detail relationship?</strong><br />
<strong> Ans:</strong><br />
We can convert the lookup relationship to master detail relationship if and only if all the existing record has valid lookup field.</p>
<hr />
<p><strong>42. In How many way we can invoke the Apex class?</strong><br />
<strong> Ans:</strong></p>
<ol>
<li>Visualforce page</li>
<li>Trigger</li>
<li>Web Services</li>
<li><a title="Email Services" href="http://shivasoft.in/blog/salesforce/email-services-in-salesforce-with-simple-example/" target="_blank">Email Services</a></li>
</ol>
<hr />
<p><strong><span id="more-2681"></span>43. Can we create Master Detail relationship on existing records?</strong><br />
<strong> Ans:</strong><br />
No. As discussed above, first we have to create the lookup relationship then populate the value on all existing record and then convert it.</p>
<hr />
<p><strong>44. How validation rules executed? is it page layout / Visualforce dependent?</strong><br />
<strong> Ans :</strong><br />
The validation rules run at the data model level, so they are not affected by the UI. Any record that is saved in Salesforce will run through the validation rules.</p>
<hr />
<p><strong>45. What is the difference between database.insert and insert ?</strong><br />
<strong> Ans:</strong><br />
<strong>insert</strong> is the DML statement which is same as <strong>databse.insert</strong>. However, database.insert gives more flexibility like rollback, default assignment rules etc. we can achieve the database.insert behavior in insert by using the method setOptions(Database.DMLOptions)<br />
<strong>Important Difference:</strong></p>
<ul>
<li>If we use the DML statement (insert), then in bulk operation if error occurs, the execution will stop and Apex code throws an error which can be handled in try catch block.</li>
<li>If DML database methods (Database.insert) used, then if error occurs the remaining records will be inserted / updated means partial DML operation will be done.</li>
</ul>
<hr />
<p><strong>46. What is the scope of static variable ?</strong><br />
<strong> Ans:</strong><br />
When you declare a method or variable as static, it&#8217;s initialized only once when a class is loaded. Static variables aren&#8217;t transmitted as part of the view state for a Visualforce page.</p>
<p>Static variables are only static within the scope of the request. They are not static across the server, or across the entire organization.</p>
<hr />
<p><strong>47. Other than SOQL and SOSL what is other way to get custom settings?</strong><br />
<strong> Ans:</strong><br />
Other than SOQL or SOSL, Custom seting have there own set of methods to access the record.<br />
For example : if there is custom setting of name ISO_Country,</p>
<pre class="brush: csharp; title: ; notranslate">
SO_Country__c code = ISO_Country__c.getInstance(‘INDIA’);
//To return a map of data sets defined for the custom object (all records in the custom object), //you would use:
Map mapCodes = ISO_Country__c.getAll();
// display the ISO code for India
System.debug(‘ISO Code: ‘+mapCodes.get(‘INDIA’).ISO_Code__c);
//Alternatively you can return the map as a list:
List listCodes = ISO_Country__c.getAll().values();
</pre>
<hr />
<p><strong>48. What happen if child have two master records and one is deleted?</strong><br />
<strong> Ans :</strong><br />
Child record will be deleted.</p>
<p><a title="More than one master record" href="http://shivasoft.in/blog/webtech/salesforce/deep-drive-in-junction-object-create-many-to-many-relationship-in-salesforce/" target="_blank">read more in this article.</a></p>
<hr />
<p><strong>49. What is Difference in render, rerender and renderas attributes of visualforce?</strong><br />
<strong> Ans:</strong><br />
<strong>render</strong> &#8211; It works like &#8220;display&#8221; property of CSS. Used to show or hide element.<br />
<strong>rerender</strong> &#8211; After Ajax which component should be refreshed &#8211; available on commandlink, commandbutton, actionsupport etc.<br />
<strong>renderas</strong> &#8211; render page as pdf, doc and excel.</p>
<hr />
<p><strong>50. What is Scheduler class in Apex?</strong><br />
<strong> Ans:</strong><br />
The Apex class which is programed to run at pre defined interval.<br />
Class must implement <strong>schedulable</strong> interface and it contains method named execute().<br />
There are two ways to invoke schedular :</p>
<ol>
<li>Using UI</li>
<li>Using System.schedule</li>
</ol>
<p>The class which implements interface schedulable get the button texted with “Schedule”, when user clicks on that button, new interface opens to schedule the classes which implements that interface.<br />
To see what happened to scheduled job, go to “<strong>Monitoring | Scheduled jobs</strong> “</p>
<p>Example of scheduling :</p>
<pre class="brush: csharp; title: ; notranslate">
scheduledMerge m = new scheduledMerge();
String sch = '20 30 8 10 2 ?';
system.schedule('Merge Job', sch, m);
</pre>
<p>To see how to make crone job string &#8211; <a title="Crone Job String Maker" href="http://www.cronmaker.com/" target="_blank">refer this URL</a>.</p>
<hr />
<div style="background-color: #f5e2ba; border: 1px solid #ccc; width: 100%; padding-top: 10px; margin-top: 10px; color: #140b5c;">
<p><a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 1" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions/" target="_blank"> Part &#8211; 1</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 2" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions-%E2%80%93-part-2/" target="_blank">Part &#8211; 2</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 3" href="http://shivasoft.in/blog/tips/salesforce-interview-questions-%E2%80%93-part-3/" target="_blank"> Part &#8211; 3</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 4 - Dynamic Apex" href="http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/" target="_blank">Part &#8211; 4 &#8211; Dynamic Apex</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 5" href="http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/" target="_blank">Part &#8211; 5 </a></p>
</div>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=v8stddy1ejE:_6swDolzEUU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=v8stddy1ejE:_6swDolzEUU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=v8stddy1ejE:_6swDolzEUU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=v8stddy1ejE:_6swDolzEUU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=v8stddy1ejE:_6swDolzEUU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=v8stddy1ejE:_6swDolzEUU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/v8stddy1ejE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/</feedburner:origLink></item>
		<item>
		<title>Create Simple Drag and Drop Widget like iGoogle using JQuery</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/yM-_suYLqyI/</link>
		<comments>http://shivasoft.in/blog/webtech/web/create-simple-drag-and-drop-widget-like-igoogle-using-jquery/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 19:10:27 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2657</guid>
		<description><![CDATA[Live Demo with source code on creating Simple Drag and Drop Widget using JQuery plugin like iGoogle 
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/web/highlight-current-field-using-jquery/' rel='bookmark' title='Highlight Current field using JQuery'>Highlight Current field using JQuery</a></li>
<li><a href='http://shivasoft.in/blog/java/servlet/servlet-hibernate-jquery-and-ajax-based-google-like-chat/' rel='bookmark' title='Servlet, Hibernate, jQuery and Ajax based google like chat'>Servlet, Hibernate, jQuery and Ajax based google like chat</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/disable-inputs-after-submit-to-avoid-double-submission-using-jquery-and-ajax/' rel='bookmark' title='Disable inputs after submit to avoid double submission using JQuery and Ajax'>Disable inputs after submit to avoid double submission using JQuery and Ajax</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/IKZz7lx228g0IHnEZW0m22949OA/0/da"><img src="http://feedads.g.doubleclick.net/~a/IKZz7lx228g0IHnEZW0m22949OA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IKZz7lx228g0IHnEZW0m22949OA/1/da"><img src="http://feedads.g.doubleclick.net/~a/IKZz7lx228g0IHnEZW0m22949OA/1/di" border="0" ismap="true"></img></a></p><p>After reading this post you will come to know that how easy its to create the Drag and Drop functionality using JQuery.</p>
<p>To run this example you will need two javascript libraries as follow:</p>
<ol>
<li><a href="http://jquery.com/">JQuery</a></li>
<li><a href="http://jqueryui.com/">JQueryUI</a></li>
</ol>
<div id="attachment_2661" class="wp-caption aligncenter" style="width: 601px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/jQuery-Drag-and-Drop-Widgets.png"><img class=" wp-image-2661  " title="jQuery Drag and Drop Widgets" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/jQuery-Drag-and-Drop-Widgets.png" alt="jQuery Drag and Drop Widgets" width="591" height="234" /></a><p class="wp-caption-text">jQuery Drag and Drop Widgets</p></div>
<p><span id="more-2657"></span></p>
<h3><a href="http://shivasoft.in/blog/wp-content/uploads/demos/DragAndDrop/index.html">You can see the complete working demo here</a></h3>
<p>Lets say you want to create the widget in two columns, so first create two DIV tags as shown below:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;column1&quot; class=&quot;column&quot;&gt;
&lt;!-- Widgets code here --&gt;
&lt;/div&gt;

&lt;div id=&quot;column2&quot;  class=&quot;column&quot;&gt;
&lt;!-- Widgets code here --&gt;
&lt;/div&gt;
</pre>
<p>We are assuming that we can drag the elements from column1 to column2 and vice verse.</p>
<p>Now we will create the actual element which can be drag-gable.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;column1&quot; class=&quot;column&quot;&gt;
	&lt;div class=&quot;dragbox&quot; id=&quot;item1&quot; &gt;
		&lt;h2&gt;Handle 1
		  &lt;a href=&quot;#&quot; class=&quot;delete opIcons&quot;&gt; &lt;/a&gt;
		  &lt;a href=&quot;#&quot; class=&quot;maxmin opIcons&quot;&gt; &lt;/a&gt;

		&lt;/h2&gt;
		&lt;div class=&quot;dragbox-content&quot; &gt;
			&lt;!-- Panel Content Here --&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;column2&quot;  class=&quot;column&quot;&gt;
	&lt;div class=&quot;dragbox&quot; id=&quot;item2&quot; &gt;
		&lt;h2&gt;Handle 2
		  &lt;a href=&quot;#&quot; class=&quot;delete opIcons&quot;&gt; &lt;/a&gt;
		  &lt;a href=&quot;#&quot; class=&quot;maxmin opIcons&quot;&gt; &lt;/a&gt;

		&lt;/h2&gt;
		&lt;div class=&quot;dragbox-content&quot; &gt;
			&lt;!-- Panel Content Here --&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>As you can see &lt;h2&gt; tag is used to create the heading and there are two &lt;a&gt; (anchor) tags, one for delete and one for toggle.</p>
<p>Now its time to write the JQuery code to drag and drop the &lt;div&gt; tag with <strong>class=&#8221;dragbox&#8221;</strong></p>
<pre class="brush: jscript; title: ; notranslate">
$(
function(){
	$('a.maxmin').click(
	function(){
		$(this).parent().siblings('.dragbox-content').toggle();
	});

	$('a.delete').click(
	function(){
		var sel = confirm('do you want to delete the widget?');
		if(sel)
		{
			//del code here
		}
	}
	);

	$('.column').sortable({
	connectWith: '.column',
	handle: 'h2',
	cursor: 'move',
	placeholder: 'placeholder',
	forcePlaceholderSize: true,
	opacity: 0.4,
	stop: function(event, ui)
		{
			$(ui.item).find('h2').click();
			var sortorder='';

			$('.column').each(function(){
				var itemorder=$(this).sortable('toArray');
				var columnId=$(this).attr('id');
				sortorder+=columnId+'='+itemorder.toString()+'&amp;';
			});
			sortorder = sortorder.substring(0, sortorder.length - 1)
			alert('SortOrder: '+sortorder);

		}
	}).disableSelection();
});
</pre>
<p style="text-align: justify;">As you can see, on dom ready event using $() &#8211; which is equal to &#8220;$.ready()&#8221;, we have written the code like $(&#8216;.column&#8217;).sortable(&#8230;) which will perform the drag and drop functionality. the &#8220;sortable&#8221; functionality is used to save the state of the widget in database so that next time you can load the widget in order which they are previously for this you will need to do some extra code here. The sort result is displayed using alert after element drop.</p>
<p style="text-align: justify;">For the delete action, i have written the comment where server request can be called using Ajax to delete the widget. With the help of below CSS this example will be completed with nice look and feel.</p>
<pre class="brush: css; title: ; notranslate">
.column{
	width:49%;
	margin-right:.5%;
	min-height:300px;
	background:#fff;
	float:left;
}
.column .dragbox{
	margin:5px 2px  20px;
	background:#fff;
	position:&quot;relative&quot;;
	border:1px solid #946553;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
}
.column .dragbox h2{
	margin:0;
	font-size:12px;
	background:#946553;
	color:#fff;
	border-bottom:1px solid #946553;
	font-family:Verdana;
	cursor:move;
	padding:5px;
}

.dragbox-content{
	background:#fff;
	min-height:100px; margin:5px;
	font-family:'Lucida Grande', Verdana; font-size:0.8em; line-height:1.5em;
}
.column  .placeholder{
	background: #EED5B7;
	border:1px dashed #946553;
}

.opIcons
{
background-image: url('iconSpirite.gif')!important;
background-repeat: no-repeat;
float:right;
height:13px;
width:13px;
margin:0px 2px;
}

.maxmin
{
	background-position:-26px 1px;
}

.delete
{
	background-position:-269px center;
	padding-top:1px;
}
</pre>
<h3><a href="http://shivasoft.in/blog/wp-content/uploads/demos/DragAndDrop/index.html">You can see the complete working demo here</a></h3>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/web/highlight-current-field-using-jquery/' rel='bookmark' title='Highlight Current field using JQuery'>Highlight Current field using JQuery</a></li>
<li><a href='http://shivasoft.in/blog/java/servlet/servlet-hibernate-jquery-and-ajax-based-google-like-chat/' rel='bookmark' title='Servlet, Hibernate, jQuery and Ajax based google like chat'>Servlet, Hibernate, jQuery and Ajax based google like chat</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/disable-inputs-after-submit-to-avoid-double-submission-using-jquery-and-ajax/' rel='bookmark' title='Disable inputs after submit to avoid double submission using JQuery and Ajax'>Disable inputs after submit to avoid double submission using JQuery and Ajax</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=yM-_suYLqyI:O5Ly2LMegRw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=yM-_suYLqyI:O5Ly2LMegRw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=yM-_suYLqyI:O5Ly2LMegRw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=yM-_suYLqyI:O5Ly2LMegRw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=yM-_suYLqyI:O5Ly2LMegRw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=yM-_suYLqyI:O5Ly2LMegRw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/yM-_suYLqyI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/webtech/web/create-simple-drag-and-drop-widget-like-igoogle-using-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/webtech/web/create-simple-drag-and-drop-widget-like-igoogle-using-jquery/</feedburner:origLink></item>
		<item>
		<title>Get DOM ElementID of the Visualforce components</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/4ptOJXkCaY4/</link>
		<comments>http://shivasoft.in/blog/salesforce/get-dom-elementid-of-the-visualforce-components/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 08:23:53 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Visualforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2649</guid>
		<description><![CDATA[How to get the  DOM ElementID of the Visualforce components in Salesforce
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/' rel='bookmark' title='Passing multiple Parameters in ActionFunction in Visualforce'>Passing multiple Parameters in ActionFunction in Visualforce</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/how-to-host-s-control-in-visualforce-page/' rel='bookmark' title='How to Host S-Control in Visualforce Page'>How to Host S-Control in Visualforce Page</a></li>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/myqAIWXamFjk5Rndjonw_3kEl2w/0/da"><img src="http://feedads.g.doubleclick.net/~a/myqAIWXamFjk5Rndjonw_3kEl2w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/myqAIWXamFjk5Rndjonw_3kEl2w/1/da"><img src="http://feedads.g.doubleclick.net/~a/myqAIWXamFjk5Rndjonw_3kEl2w/1/di" border="0" ismap="true"></img></a></p><p>This article will focus on getting generated dom element Id in Visualforce.<br />
Let’s consider below code snap:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:page&gt;
&lt;apex:form id=&quot;frm&quot;&gt;
Enter Value 1 :
&lt;apex:inputText id=&quot;txt1&quot; /&gt;
&lt;/apex:form&gt;
&lt;/apex:page&gt;
</pre>
<p>If you want to get the id of <strong>“apex:inputText”</strong> in javascript like belowCode</p>
<pre class="brush: jscript; title: ; notranslate">
Var fld =  document.getElementById(‘txt1’);
</pre>
<p>It will <strong>NOT</strong> work.<br />
Because its actual id will be something like “<em>j_id0:frm:txt1</em>”.</p>
<p><span id="more-2649"></span>To get the Actual id in Visualforce page we have to use below line of code:</p>
<pre class="brush: jscript; title: ; notranslate">
Var fld =  document.getElementById(&quot;{!$Component.txt1}&quot;);
</pre>
<p>As you can see, we have to use below Syntax:</p>
<blockquote><p>{!$Component.fieldId}</p></blockquote>
<p><strong>Case 1:</strong><br />
However there is one catch. If the element is present at several levels where Parents also have the Id then you have to write code like:</p>
<pre class="brush: jscript; title: ; notranslate">
{!$Component.Parent1.Parent2.fieldId}
</pre>
<p><strong>Case 2:</strong><br />
If your element is within form tag having no Id like :</p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:page&gt;
&lt;apex:form&gt;
Enter Value 1 :
&lt;apex:inputText id=&quot;txt1&quot; /&gt;
&lt;/apex:form&gt;
&lt;/apex:page&gt;
</pre>
<p>And you try to get the id like</p>
<pre class="brush: jscript; title: ; notranslate">
Var fld =  document.getElementById(&quot;{!$Component.txt1}&quot;);
</pre>
<p>It will <strong>NOT</strong> work.<br />
You must have to give the Id to “<strong>apex:form</strong>” element and access it.</p>
<p>Example Working code:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:page&gt;
&lt;apex:form id=&quot;frm&quot;&gt;
Enter Value 1 :
&lt;apex:inputText id=&quot;txt1&quot; /&gt;
&lt;/apex:form&gt;
&lt;/apex:page&gt;
</pre>
<p>Get Id by using code:</p>
<pre class="brush: jscript; title: ; notranslate">
Var fld =  document.getElementById(&quot;{!$Component.frm.txt1}&quot;);
</pre>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/' rel='bookmark' title='Passing multiple Parameters in ActionFunction in Visualforce'>Passing multiple Parameters in ActionFunction in Visualforce</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/how-to-host-s-control-in-visualforce-page/' rel='bookmark' title='How to Host S-Control in Visualforce Page'>How to Host S-Control in Visualforce Page</a></li>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=4ptOJXkCaY4:3OfhzCX7ABM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=4ptOJXkCaY4:3OfhzCX7ABM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=4ptOJXkCaY4:3OfhzCX7ABM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=4ptOJXkCaY4:3OfhzCX7ABM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=4ptOJXkCaY4:3OfhzCX7ABM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=4ptOJXkCaY4:3OfhzCX7ABM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/4ptOJXkCaY4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/get-dom-elementid-of-the-visualforce-components/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/get-dom-elementid-of-the-visualforce-components/</feedburner:origLink></item>
		<item>
		<title>Getting record from other Salesforce organization OR communication between multiple salesforce organization</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/S2Cf8BW9gKk/</link>
		<comments>http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 17:55:52 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Apex]]></category>
		<category><![CDATA[Force.com]]></category>
		<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Visualforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2624</guid>
		<description><![CDATA[Calling Rest Web service using Apex - Getting record from other Salesforce organization or Account or communication between multiple salesforce organization
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/' rel='bookmark' title='Passing multiple Parameters in ActionFunction in Visualforce'>Passing multiple Parameters in ActionFunction in Visualforce</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/email-services-in-salesforce-with-simple-example/' rel='bookmark' title='Email Services in Salesforce with simple example'>Email Services in Salesforce with simple example</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/' rel='bookmark' title='Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex'>Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/A4gt1iBLjaW2F4DxcVxuEIJlQPg/0/da"><img src="http://feedads.g.doubleclick.net/~a/A4gt1iBLjaW2F4DxcVxuEIJlQPg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/A4gt1iBLjaW2F4DxcVxuEIJlQPg/1/da"><img src="http://feedads.g.doubleclick.net/~a/A4gt1iBLjaW2F4DxcVxuEIJlQPg/1/di" border="0" ismap="true"></img></a></p><p>In this article, i will explain the code which can be used for connecting and getting the records from different or multiple salesforce organization using Apex and REST Service.</p>
<p>To start first we will need to authorize below two URL which can be accessed from salesforce environment.<br />
This can be done from <strong>“Setup | Administration Setup | Security Controls | Remote Site Settings”</strong></p>
<ol>
<li><a href="https://www.salesforce.com">https://www.salesforce.com</a></li>
<li><a href="https://ap1-api.salesforce.com">https://ap1-api.salesforce.com</a></li>
</ol>
<div id="attachment_2625" class="wp-caption aligncenter" style="width: 485px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/Salesforce-Remote-Site-Setting.png"><img class=" wp-image-2625   " title="Salesforce Remote Site Setting" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/Salesforce-Remote-Site-Setting.png" alt="Salesforce Remote Site Setting" width="475" height="173" /></a><p class="wp-caption-text">Salesforce Remote Site Setting</p></div>
<p><span id="more-2624"></span><br />
It is possible that you may need to change first URL it may be <a href="https://www.na1-api.salesforce.com">https://www.na1-api.salesforce.com</a> or <a href="https://www.na2-api.salesforce.com">https://www.na2-api.salesforce.com</a></p>
<p>This application will prompt for the Username and Password of the other salesforce account and display the 10 records of the Account.</p>
<div id="attachment_2626" class="wp-caption aligncenter" style="width: 485px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/Connect-Other-Salesforce-Account.png"><img class=" wp-image-2626    " title="Connect Other Salesforce Account - Output Screen" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/Connect-Other-Salesforce-Account.png" alt="Connect Other Salesforce Account - Output Screen" width="475" height="236" /></a><p class="wp-caption-text">Connect Other Salesforce Account - Output Screen</p></div>
<p><strong>Apex Code:</strong></p>
<pre class="brush: java; title: ; notranslate">
public with sharing class FetchAccount {

    //Login Domain May be test, prerellogin.pre
    String LOGIN_DOMAIN = 'www';
    public String pwd{get;set;}
    public String userName{get;set;}
    public List&lt;Account&gt; acc{get;set;}
    public String errMsg{get;set;}
    public String displayError{get;set;}

    public FetchAccount()
    {
        displayError = 'none';
    }

    public void fetch()
    {
        errMsg  = 'Some error occurred, please try again';
        try
        {
        //-----------------------------------
        // Login via SOAP/XML web service api
        //-----------------------------------
        HttpRequest request = new HttpRequest();
        request.setEndpoint('https://' + LOGIN_DOMAIN + '.salesforce.com/services/Soap/u/22.0');
        request.setMethod('POST');
        request.setHeader('Content-Type', 'text/xml;charset=UTF-8');
        request.setHeader('SOAPAction', '&quot;&quot;');
        //not escaping username and password because we're setting those variables above
        //in other words, this line &quot;trusts&quot; the lines above
        //if username and password were sourced elsewhere, they'd need to be escaped below
        request.setBody('&lt;Envelope xmlns=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;Header/&gt;&lt;Body&gt;&lt;login xmlns=&quot;urn:partner.soap.sforce.com&quot;&gt;&lt;username&gt;' + userName+ '&lt;/username&gt;&lt;password&gt;' + pwd+ '&lt;/password&gt;&lt;/login&gt;&lt;/Body&gt;&lt;/Envelope&gt;');
        Dom.XmlNode resultElmt = (new Http()).send(request).getBodyDocument().getRootElement()
          .getChildElement('Body', 'http://schemas.xmlsoap.org/soap/envelope/')
          .getChildElement('loginResponse', 'urn:partner.soap.sforce.com')
          .getChildElement('result', 'urn:partner.soap.sforce.com');

        //-------------------------------
        // Grab session id and server url
        //--------------------------------
        final String SERVER_URL = resultElmt.getChildElement('serverUrl', 'urn:partner.soap.sforce.com') .getText().split('/services')[0];
        final String SESSION_ID = resultElmt.getChildElement('sessionId', 'urn:partner.soap.sforce.com') .getText();

        //----------------------------------
        // Load first 10 accounts via REST API
        //---------------------------------
        final PageReference theUrl = new PageReference(SERVER_URL + '/services/data/v22.0/query/');
        theUrl.getParameters().put('q','Select a.Phone, a.Name, a.CreatedBy.FirstName, a.CreatedById From Account a limit 10');
        request = new HttpRequest();
        request.setEndpoint(theUrl.getUrl());
        request.setMethod('GET');
        request.setHeader('Authorization', 'OAuth ' + SESSION_ID);

        String body = (new Http()).send(request).getBody();

        JSONParser parser = JSON.createParser(body);

        do{
            parser.nextToken();
        }while(parser.hasCurrentToken() &amp;&amp; !'records'.equals(parser.getCurrentName()));

        parser.nextToken();

        acc = (List&lt;Account&gt;) parser.readValueAs(List&lt;Account&gt;.class);
        }
        catch(Exception e)
        {
            displayError = 'block';
        }

    }
}
</pre>
<p><strong>Visualforce Code:</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:page controller=&quot;FetchAccount&quot; standardStylesheets=&quot;true&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
.errorMsg{
    font-size:0.8 em;
    color:red;
}
&lt;/style&gt;
&lt;apex:pageBlock &gt;
&lt;apex:form &gt;
&lt;apex:outputLabel value=&quot;UserName : &quot; for=&quot;userName&quot;/&gt;
&lt;apex:inputText required=&quot;true&quot; id=&quot;userName&quot; value=&quot;{!userName}&quot; /&gt;
&lt;br /&gt;
&lt;apex:outputLabel value=&quot;Password : &quot; for=&quot;pwd&quot;/&gt;
&lt;apex:inputsecret id=&quot;pwd&quot; value=&quot;{!pwd}&quot;/&gt;
&lt;br /&gt;
&lt;apex:commandButton id=&quot;getRecords&quot; value=&quot;Get Records&quot; action=&quot;{!fetch}&quot; rerender=&quot;wrapper&quot; status=&quot;waitStatus&quot; /&gt;
&lt;apex:actionStatus startText=&quot;Requesting...&quot; stopText=&quot;&quot; id=&quot;waitStatus&quot;/&gt;
&lt;hr /&gt;
&lt;apex:outputPanel id=&quot;wrapper&quot;&gt;
&lt;div class=&quot;errorMsg&quot; style=&quot;display:{!displayError}&quot;&gt; {!errMsg} &lt;/div&gt;
&lt;apex:pageBlockTable value=&quot;{!acc}&quot; var=&quot;account&quot; id=&quot;accTable&quot; rowClasses=&quot;odd,even&quot; styleClass=&quot;tableClass&quot;&gt;

    &lt;apex:column &gt;
        &lt;apex:facet name=&quot;header&quot;&gt;Account Name&lt;/apex:facet&gt;
         &lt;apex:outputText value=&quot;{!account.name}&quot;/&gt;
    &lt;/apex:column&gt;

    &lt;apex:column &gt;
        &lt;apex:facet name=&quot;header&quot;&gt;Created By&lt;/apex:facet&gt;
         &lt;apex:outputText value=&quot;{!account.CreatedBy.FirstName}&quot;/&gt;
    &lt;/apex:column&gt;

    &lt;apex:column &gt;
        &lt;apex:facet name=&quot;header&quot;&gt;Phone&lt;/apex:facet&gt;
         &lt;apex:outputText value=&quot;{!account.Phone}&quot;/&gt;
    &lt;/apex:column&gt;

&lt;/apex:pageBlockTable&gt;
&lt;/apex:outputPanel&gt;
&lt;/apex:form&gt;
&lt;/apex:pageBlock&gt;
&lt;/apex:page&gt;
</pre>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/' rel='bookmark' title='Passing multiple Parameters in ActionFunction in Visualforce'>Passing multiple Parameters in ActionFunction in Visualforce</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/email-services-in-salesforce-with-simple-example/' rel='bookmark' title='Email Services in Salesforce with simple example'>Email Services in Salesforce with simple example</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/' rel='bookmark' title='Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex'>Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=S2Cf8BW9gKk:q3SfduqPoYw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=S2Cf8BW9gKk:q3SfduqPoYw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=S2Cf8BW9gKk:q3SfduqPoYw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=S2Cf8BW9gKk:q3SfduqPoYw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=S2Cf8BW9gKk:q3SfduqPoYw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=S2Cf8BW9gKk:q3SfduqPoYw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/S2Cf8BW9gKk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/</feedburner:origLink></item>
		<item>
		<title>What is IaaS, PaaS and SaaS in Cloud computing</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/lGd4aton21M/</link>
		<comments>http://shivasoft.in/blog/salesforce/what-is-iaas-paas-and-saas-in-cloud-computing/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 17:54:05 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2620</guid>
		<description><![CDATA[Explain the term IaaS, PaaS and SaaS in Cloud computing
No related posts.]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/6qkgOaTd2M48UkBzugAKfVGCmuk/0/da"><img src="http://feedads.g.doubleclick.net/~a/6qkgOaTd2M48UkBzugAKfVGCmuk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6qkgOaTd2M48UkBzugAKfVGCmuk/1/da"><img src="http://feedads.g.doubleclick.net/~a/6qkgOaTd2M48UkBzugAKfVGCmuk/1/di" border="0" ismap="true"></img></a></p><p>This blog entry is too late and the reason of writing this article is, lots of time i got question like “<strong>What is Cloud Computing?</strong>”<br />
So here, every term of cloud computing is explained.</p>
<p><strong>Cloud Computing :</strong></p>
<p>In simple words it is the application on the remote server and to access it you will need the internet access and browser.<br />
<span style="text-decoration: underline;">Examples</span> : Gmail,Yahoo Mail &#8211; Email on remote server not on your local system.</p>
<p>It may be possible that you have virtual server (Server at remote place) or development environment at remote place. This is also included under term &#8220;Cloud Computing&#8221;.</p>
<div id="attachment_2621" class="wp-caption aligncenter" style="width: 410px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/What-is-Cloud-computing.png"><img class="size-full wp-image-2621" title="What is Cloud Computing" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/What-is-Cloud-computing.png" alt="What is Cloud Computing" width="400" height="362" /></a><p class="wp-caption-text">What is Cloud Computing</p></div>
<hr />
<p><span id="more-2620"></span><br />
<strong>IaaS</strong> stands for <strong>Infrastructure as a service</strong> :<br />
In this type of service, you will get the Virtual System which can be connected using internet. Where you can install any Software even in some service providers you can install the operating system. You can get the root level of access to the server. System admins are mainly benefited because of no hardware maintenance and overhead.<br />
<span style="text-decoration: underline;">Example</span> &#8211; Amazon ECS and Rackspace Cloud</p>
<hr />
<p><strong>PaaS</strong> stands for <strong>Platform as a service :</strong><br />
In this type of service, you get development platform bundled with all the types of software preinstalled. You will then have to write and execute all your codes in remote server by some mechanism. Normally you will get the sandbox to program and test your applications. In this type of mechanism you cannot get the root level of access to the remote server. Servers will normally follow the multitenant architect where same server used by multiple organizations. It’s preferred by the developers who want to quickly start the development on particular technology without worrying about the hardware and underlying technology framework installations.<br />
<span style="text-decoration: underline;">Example</span> – Heroku and force.com both belongs to Salesforce</p>
<hr />
<p><strong>SaaS</strong> stands for <strong>Software as a service</strong><br />
This is the highest level of service in which everything is provided from hardware to software to already build applications.<br />
<span style="text-decoration: underline;">Example</span> – Salesforce.com used for the CRM already have bunch of applications build.</p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=lGd4aton21M:s3LvC4FCQjA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=lGd4aton21M:s3LvC4FCQjA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=lGd4aton21M:s3LvC4FCQjA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=lGd4aton21M:s3LvC4FCQjA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=lGd4aton21M:s3LvC4FCQjA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=lGd4aton21M:s3LvC4FCQjA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/lGd4aton21M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/what-is-iaas-paas-and-saas-in-cloud-computing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/what-is-iaas-paas-and-saas-in-cloud-computing/</feedburner:origLink></item>
		<item>
		<title>Passing multiple Parameters in ActionFunction in Visualforce</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/rFeKwYN02Lc/</link>
		<comments>http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 19:30:38 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Visualforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2643</guid>
		<description><![CDATA[Example and Source code of  multiple Parameters  Parameter in ActionFunction in Visualforce - Salesforce
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/get-dom-elementid-of-the-visualforce-components/' rel='bookmark' title='Get DOM ElementID of the Visualforce components'>Get DOM ElementID of the Visualforce components</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/how-to-host-s-control-in-visualforce-page/' rel='bookmark' title='How to Host S-Control in Visualforce Page'>How to Host S-Control in Visualforce Page</a></li>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/5qjp5v1-PL11X_5_yzywG-XgXzI/0/da"><img src="http://feedads.g.doubleclick.net/~a/5qjp5v1-PL11X_5_yzywG-XgXzI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5qjp5v1-PL11X_5_yzywG-XgXzI/1/da"><img src="http://feedads.g.doubleclick.net/~a/5qjp5v1-PL11X_5_yzywG-XgXzI/1/di" border="0" ismap="true"></img></a></p><p style="text-align: justify;">Calling Apex Method from the Visualforce page is the one of the most required functionality in application development in Salesforce. <strong>&lt;apex:actionFunction&gt;</strong> is one of the method used to achieve this functionality.</p>
<p style="text-align: justify;">Most often we need to supply the arguments in <strong>&lt;apex:actionFunction&gt;</strong> and in this article I will demonstrate the way in which we can pass one or more than one parameter.<br />
The output of the example will be like below screen.</p>
<div id="attachment_2647" class="wp-caption aligncenter" style="width: 366px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/Passing-Parameter-in-ActionFunction-in-Visualforce.png"><img class="size-full wp-image-2647" title="Passing Parameter in ActionFunction in Visualforce" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/Passing-Parameter-in-ActionFunction-in-Visualforce.png" alt="Passing Parameter in ActionFunction in Visualforce" width="356" height="176" /></a><p class="wp-caption-text">Passing Parameter in ActionFunction in Visualforce</p></div>
<p>Create Apex class with following code:<span id="more-2643"></span></p>
<pre class="brush: java; title: ; notranslate">
public with sharing class PassParameterActionFunction {
    public String val{get;set;}
    public String enteredText1{get;set;}
    public String enteredText2{get;set;}

    public void echoVal()
    {
     val = 'You have entered : 1 - '+enteredText1+' 2 -'+enteredText2;
    }
}
</pre>
<p>In above code, the variables “<strong>enteredText1</strong>” and “<strong>enteredText2</strong>” will be the parameters supplied by the javascript and variable “<strong>val</strong>” will display the concatenated result.<br />
Now create the Visualforce page with code:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:page controller=&quot;PassParameterActionFunction&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
.pointer
{
    cursor:pointer;
    border:1px solid #ccc;
    padding:5px;
}
&lt;/style&gt;
&lt;apex:form id=&quot;frm&quot;&gt;
&lt;apex:outputPanel id=&quot;resultPanel&quot;&gt;
&lt;apex:actionStatus startText=&quot;requesting...&quot; stopText=&quot;&quot; id=&quot;myStatus&quot; /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;apex:outputLabel value=&quot;{!val}&quot; /&gt;&lt;/b&gt;
&lt;/apex:outputPanel&gt;
&lt;br /&gt;
Enter Value 1 :
&lt;apex:inputText id=&quot;txt1&quot; /&gt;
&lt;br /&gt;
Enter Value 2 :
&lt;apex:inputText id=&quot;txt2&quot; /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;pointer&quot; onclick=&quot;callActionMethod()&quot;&gt; Click Me !!! &lt;/span&gt;

&lt;apex:actionFunction name=&quot;echo&quot; action=&quot;{!echoVal}&quot; reRender=&quot;resultPanel&quot; status=&quot;myStatus&quot;&gt;
&lt;apex:param name=&quot;firstParam&quot; assignTo=&quot;{!enteredText1}&quot; value=&quot;&quot; /&gt;
&lt;apex:param name=&quot;secondParam&quot; assignTo=&quot;{!enteredText2}&quot; value=&quot;&quot; /&gt;
&lt;/apex:actionFunction&gt;
&lt;/apex:form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function callActionMethod()
{
 var txtVal1 = document.getElementById(&quot;{!$Component.frm.txt1}&quot;).value;
 var txtVal2 = document.getElementById(&quot;{!$Component.frm.txt2}&quot;).value;
 /*Below Method is generated by &quot;apex:actionFunction&quot; which will call Apex Method &quot;echoVal&quot; */
 echo(txtVal1,txtVal2);
}
&lt;/script&gt;

&lt;/apex:page&gt;
</pre>
<p style="text-align: justify;">The below code snippet is used to define the “<strong>actionFunction</strong>” in visual force page.<br />
To supply the parameter, we have to use “<strong>apex:param</strong>” tag. Attribute “<strong>assignTo</strong>” will assign the parameter to variable name specified in Apex code. Here we have assigned the value to variable “<strong>enteredText1</strong>” and “<strong>enteredText2</strong>”.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:actionFunction name=&quot;echo&quot; action=&quot;{!echoVal}&quot; reRender=&quot;resultPanel&quot; status=&quot;myStatus&quot;&gt;
&lt;apex:param name=&quot;firstParam&quot; assignTo=&quot;{!enteredText1}&quot; value=&quot;&quot; /&gt;
&lt;apex:param name=&quot;secondParam&quot; assignTo=&quot;{!enteredText2}&quot; value=&quot;&quot; /&gt;
&lt;/apex:actionFunction&gt;
</pre>
<p>The resulting JavaScript function created by the visualforce will be “<strong>echo</strong>” because we have set that name for the “<strong>apex:actionFunction</strong>”.<br />
Attribute “<strong>action</strong>” will call the method specified on Apex class and “<strong>status</strong>” will show the Ajax request status.<br />
Below JavaScript method is used to call the generated method by “<strong>apex:actionFunction</strong>”.</p>
<pre class="brush: jscript; title: ; notranslate">
function callActionMethod()
{
 var txtVal1 = document.getElementById(&quot;{!$Component.frm.txt1}&quot;).value;
 var txtVal2 = document.getElementById(&quot;{!$Component.frm.txt2}&quot;).value;
 /*Below Method is generated by &quot;apex:actionFunction&quot; which will call Apex Method &quot;echoVal&quot; */
 echo(txtVal1,txtVal2);
}
</pre>
<p>As you can see that we have called the method &#8220;<strong>echo</strong>&#8221; with two arguments, because in &#8220;<strong>apex:actionFunction</strong>&#8221; we have specified the parameters for the method.</p>
<hr />
<p><strong>Method 2:</strong></p>
<p>In this method, instead of creating two temporary variable in Apex page and assigning it using attribute &#8220;<strong>assignTo</strong>&#8220; of we can directly get the value in Apex code by something like using</p>
<pre class="brush: csharp; title: ; notranslate">
Apexpages.currentPage().getParameters().get('paramName');
</pre>
<p>So the resultant <strong>Apex code</strong> will be:</p>
<pre class="brush: csharp; title: ; notranslate">
public with sharing class PassParameterActionFunction {
    public String val{get;set;}

    public void echoVal()
    {
     val = 'You have entered : 1 - '+Apexpages.currentPage().getParameters().get('firstParam')+' 2 -'+Apexpages.currentPage().getParameters().get('secondParam');
    }
}
</pre>
<p><strong>Visualforce code:</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;apex:page controller=&quot;PassParameterActionFunction&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
.pointer
{
    cursor:pointer;
    border:1px solid #ccc;
    padding:5px;
}
&lt;/style&gt;
&lt;apex:form id=&quot;frm&quot;&gt;
&lt;apex:outputPanel id=&quot;resultPanel&quot;&gt;
&lt;apex:actionStatus startText=&quot;requesting...&quot; stopText=&quot;&quot; id=&quot;myStatus&quot; /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;apex:outputLabel value=&quot;{!val}&quot; /&gt;&lt;/b&gt;
&lt;/apex:outputPanel&gt;
&lt;br /&gt;
Enter Value 1 :
&lt;apex:inputText id=&quot;txt1&quot; /&gt;
&lt;br /&gt;
Enter Value 2 :
&lt;apex:inputText id=&quot;txt2&quot; /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;pointer&quot; onclick=&quot;callActionMethod()&quot;&gt; Click Me !!! &lt;/span&gt;

&lt;apex:actionFunction name=&quot;echo&quot; action=&quot;{!echoVal}&quot; reRender=&quot;resultPanel&quot; status=&quot;myStatus&quot;&gt;
&lt;apex:param name=&quot;firstParam&quot;  value=&quot;&quot; /&gt;
&lt;apex:param name=&quot;secondParam&quot;  value=&quot;&quot; /&gt;
&lt;/apex:actionFunction&gt;
&lt;/apex:form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function callActionMethod()
{
 var txtVal1 = document.getElementById(&quot;{!$Component.frm.txt1}&quot;).value;
 var txtVal2 = document.getElementById(&quot;{!$Component.frm.txt2}&quot;).value;
 /*Below Method is generated by &quot;apex:actionFunction&quot; which will call Apex Method &quot;echoVal&quot; */
 echo(txtVal1,txtVal2);
}
&lt;/script&gt;

&lt;/apex:page&gt;
</pre>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/get-dom-elementid-of-the-visualforce-components/' rel='bookmark' title='Get DOM ElementID of the Visualforce components'>Get DOM ElementID of the Visualforce components</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/how-to-host-s-control-in-visualforce-page/' rel='bookmark' title='How to Host S-Control in Visualforce Page'>How to Host S-Control in Visualforce Page</a></li>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=rFeKwYN02Lc:fEfCeLMmeO4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=rFeKwYN02Lc:fEfCeLMmeO4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=rFeKwYN02Lc:fEfCeLMmeO4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=rFeKwYN02Lc:fEfCeLMmeO4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=rFeKwYN02Lc:fEfCeLMmeO4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=rFeKwYN02Lc:fEfCeLMmeO4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/rFeKwYN02Lc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/passing-parameter-in-actionfunction-in-visualforce/</feedburner:origLink></item>
		<item>
		<title>Email Services in Salesforce with simple example</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/xNzQlJ7jP7E/</link>
		<comments>http://shivasoft.in/blog/salesforce/email-services-in-salesforce-with-simple-example/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 18:41:02 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Apex]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Force.com]]></category>
		<category><![CDATA[Salesforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2546</guid>
		<description><![CDATA[Complete tutorial of Email services in Salesforce with simple step by step example
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/step-by-step-salesforce-tutorial-%e2%80%93-creating-email-template-%e2%80%93-4-of-n/' rel='bookmark' title='Step by Step Salesforce Tutorial – Creating Email Template – 4 of 6'>Step by Step Salesforce Tutorial – Creating Email Template – 4 of 6</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/' rel='bookmark' title='Getting record from other Salesforce organization OR communication between multiple salesforce organization'>Getting record from other Salesforce organization OR communication between multiple salesforce organization</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/cTj657ZPl9_wQCiHMj19wcd-Gpk/0/da"><img src="http://feedads.g.doubleclick.net/~a/cTj657ZPl9_wQCiHMj19wcd-Gpk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cTj657ZPl9_wQCiHMj19wcd-Gpk/1/da"><img src="http://feedads.g.doubleclick.net/~a/cTj657ZPl9_wQCiHMj19wcd-Gpk/1/di" border="0" ismap="true"></img></a></p><p><strong>What is an Email service in Salesforce?</strong></p>
<p>Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email.</p>
<p>You can associate each email service with one or more Salesforce-generated email addresses to which users can send messages for processing.<br />
The general template to create the apex class for the email services is:</p>
<div id="attachment_2548" class="wp-caption aligncenter" style="width: 429px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Email-Services-in-Salesforce.png"><img class=" wp-image-2548 " title="How Email Services works in Salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Email-Services-in-Salesforce.png" alt="How Email Services works in Salesforce" width="419" height="316" /></a><p class="wp-caption-text">How Email Services works in Salesforce</p></div>
<p><span id="more-2546"></span></p>
<pre class="brush: java; title: ; notranslate">
global class myHandler implements Messaging.InboundEmailHandler {
	  global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
		  Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();
          return result;
      }
  }
</pre>
<p><strong>Example of Email Service – Creating Contact from email</strong><br />
Presumption –</p>
<ul>
<li>Subject should contain word “Create Contact”</li>
<li>Body contains only Contact Name.</li>
</ul>
<p>Apex Code with test method:</p>
<pre class="brush: java; title: ; notranslate">
/**
 * Email services are automated processes that use Apex classes
 * to process the contents, headers, and attachments of inbound
 * email.
 */
global class CreateContactFrmEmail implements Messaging.InboundEmailHandler {

    global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email,
    Messaging.InboundEnvelope envelope) {

        Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();

		String subToCompare = 'Create Contact';

		if(email.subject.equalsIgnoreCase(subToCompare))
		{
			Contact c = new Contact();
			c.LastName = email.plainTextBody;
			insert c;
		}

		result.success = true;
        return result;
    }

    static testMethod void testCreateContactFrmEmail() {
    	Messaging.InboundEmail email = new Messaging.InboundEmail() ;
        Messaging.InboundEnvelope env    = new Messaging.InboundEnvelope();

        email.subject = 'Create Contact';
        email.plainTextBody = 'FromEmail';
        env.fromAddress = 'ilovenagpur@gmail.com';

        CreateContactFrmEmail creatC = new CreateContactFrmEmail();
        creatC.handleInboundEmail(email, env );
    }
}
</pre>
<p>After creating the above Apex class, click <strong>Your Name | Setup | Develop | Email Services</strong>.</p>
<ul>
<li>Click New Email Service to define a new email service.</li>
<li>Select above apex class, add email address from where to accept the request and activate the service.</li>
</ul>
<div id="attachment_2607" class="wp-caption aligncenter" style="width: 438px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/Email-Service-Information.png"><img class=" wp-image-2607 " title="Email Service Information - Salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/Email-Service-Information.png" alt="Email Service Information - Salesforce" width="428" height="279" /></a><p class="wp-caption-text">Email Service Information - Salesforce</p></div>
<p>After filling the form, click on “Save and New Email Address”</p>
<div id="attachment_2608" class="wp-caption aligncenter" style="width: 430px"><a href="http://shivasoft.in/blog/wp-content/uploads/2012/01/Email-Address-Information-Salesforce.png"><img class=" wp-image-2608 " title="Email Address Information - Salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2012/01/Email-Address-Information-Salesforce.png" alt="Email Address Information - Salesforce" width="420" height="287" /></a><p class="wp-caption-text">Email Address Information - Salesforce</p></div>
<p><strong>Note:</strong> The domain name in Email address must qualify the domain name entered at “email services” in first step. For example : we have entered “gmail.com” in first step that means it will accept the email address only from the gmail.com and that’s why in second step I have used email address displayed in screen shot.<br />
After all the above steps, one email address is generated by the salesforce. Send the email to that address with subject line “Create Contact” and contact name in email body.<br />
In the above tutorial, I have used very simple example just to demonstrate that how the email services works in the salesforce.</p>
<p><strong>Governance limit of Email services in salesforce:</strong><br />
Salesforce limits the total number of messages that all email services combined, including On-Demand Email-to-Case, can process daily. Messages that exceed this limit are bounced, discarded, or queued for processing the next day, depending on how you configure the failure response settings for each email service. Salesforce calculates the limit by multiplying the number of user licenses by 1,000, up to a daily maximum of 1,000,000</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/step-by-step-salesforce-tutorial-%e2%80%93-creating-email-template-%e2%80%93-4-of-n/' rel='bookmark' title='Step by Step Salesforce Tutorial – Creating Email Template – 4 of 6'>Step by Step Salesforce Tutorial – Creating Email Template – 4 of 6</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/' rel='bookmark' title='Getting record from other Salesforce organization OR communication between multiple salesforce organization'>Getting record from other Salesforce organization OR communication between multiple salesforce organization</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=xNzQlJ7jP7E:KBp71-fSIjE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=xNzQlJ7jP7E:KBp71-fSIjE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=xNzQlJ7jP7E:KBp71-fSIjE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=xNzQlJ7jP7E:KBp71-fSIjE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=xNzQlJ7jP7E:KBp71-fSIjE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=xNzQlJ7jP7E:KBp71-fSIjE:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/xNzQlJ7jP7E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/email-services-in-salesforce-with-simple-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/email-services-in-salesforce-with-simple-example/</feedburner:origLink></item>
		<item>
		<title>Create Forum inside WordPress blog using Mingle Forum Plugin</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/o9PhKrWU5AQ/</link>
		<comments>http://shivasoft.in/blog/others/tips/create-forum-inside-wordpress-blog-using-mingle-forum-plugin/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 19:12:07 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2572</guid>
		<description><![CDATA[Tutorial of How to create Forum inside Wordpress blog using Mingle Forum Plugin
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/tips/wordpress-update-error-allowed-memory-size-exhausted/' rel='bookmark' title='wordpress update error &#8211; allowed memory size exhausted'>wordpress update error &#8211; allowed memory size exhausted</a></li>
<li><a href='http://shivasoft.in/blog/others/tips/sort-comment-in-reverse-order-wordpress/' rel='bookmark' title='Sort comment in reverse order &#8211; WordPress'>Sort comment in reverse order &#8211; WordPress</a></li>
<li><a href='http://shivasoft.in/blog/webtech/change-site-url-wordpress-error-breaks-site-structure/' rel='bookmark' title='Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure'>Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/4P5e7WfneuRZIfuk0RkcC8VdE48/0/da"><img src="http://feedads.g.doubleclick.net/~a/4P5e7WfneuRZIfuk0RkcC8VdE48/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4P5e7WfneuRZIfuk0RkcC8VdE48/1/da"><img src="http://feedads.g.doubleclick.net/~a/4P5e7WfneuRZIfuk0RkcC8VdE48/1/di" border="0" ismap="true"></img></a></p><p style="text-align: justify;">This was the requirement of one of my friend who needed integration of forum with wordpress blog. All the users of wordpress should be able to login into the forum. It was the good idea but normally i have not seen this type of functionality. Then after searching i came across one powerful forum plugin for the wordpress named &#8220;<a title="Mingle forum for the wordpress" href="http://cartpauj.icomnow.com/projects/mingle-forum-plugin/" target="_blank">Mingle Forum for the wordpress</a>&#8220;.</p>
<p style="text-align: justify;">To start with it install the &#8220;Mingle Forum&#8221; plugin and activate it.<span id="more-2572"></span></p>
<p style="text-align: justify;">Create one page (may be with name Forum) in wordpress and write text &#8220;<strong>[mingleforum]</strong>&#8221; and disable the comments, trackback and ping-backs.</p>
<p style="text-align: justify;">Now in the settings of Mingle forum, create a new Forum. I had created two forum for the demo purpose. You can see new Topic image in below screen shot. Whenever you will open the Page on which &#8220;<strong>[mingleforum]</strong>&#8221; is written, the forum will functionality will be opened.</p>
<div id="attachment_2573" class="wp-caption aligncenter" style="width: 470px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Integration-of-forum-with-Wordpress-blog.png"><img class=" wp-image-2573  " title="Integration of forum with WordPress blog" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Integration-of-forum-with-Wordpress-blog.png" alt="Integration of forum with WordPress blog" width="460" height="376" /></a><p class="wp-caption-text">Integration of forum with WordPress blog</p></div>
<p style="text-align: justify;">The reason i have suggested for the mingle forum because its very flexible in terms of settings and very active updates are available for the WordPress.</p>
<p style="text-align: justify;">Also there is online video available about the configuration of the Mingle Forum,<a title="Video of Mingle Forum Setup in WordPress" href="http://www.youtube.com/watch?v=t66BST_kU6g" target="_blank"> you can check here</a>.</p>
<p style="text-align: justify;">I hope this will be very hopeful for lots of the bloggers.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/tips/wordpress-update-error-allowed-memory-size-exhausted/' rel='bookmark' title='wordpress update error &#8211; allowed memory size exhausted'>wordpress update error &#8211; allowed memory size exhausted</a></li>
<li><a href='http://shivasoft.in/blog/others/tips/sort-comment-in-reverse-order-wordpress/' rel='bookmark' title='Sort comment in reverse order &#8211; WordPress'>Sort comment in reverse order &#8211; WordPress</a></li>
<li><a href='http://shivasoft.in/blog/webtech/change-site-url-wordpress-error-breaks-site-structure/' rel='bookmark' title='Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure'>Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=o9PhKrWU5AQ:bD_zDMbBmnE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=o9PhKrWU5AQ:bD_zDMbBmnE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=o9PhKrWU5AQ:bD_zDMbBmnE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=o9PhKrWU5AQ:bD_zDMbBmnE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=o9PhKrWU5AQ:bD_zDMbBmnE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=o9PhKrWU5AQ:bD_zDMbBmnE:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/o9PhKrWU5AQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/others/tips/create-forum-inside-wordpress-blog-using-mingle-forum-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/others/tips/create-forum-inside-wordpress-blog-using-mingle-forum-plugin/</feedburner:origLink></item>
		<item>
		<title>Google Speed Online API widget integration with W3 Total Cache in WordPress</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/W8hbQBHT6ZM/</link>
		<comments>http://shivasoft.in/blog/webtech/seo/google-speed-online-api-widget-integration-with-w3-total-cache-in-wordpress/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 18:50:53 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2576</guid>
		<description><![CDATA[Tutorial of Google Speed API widget integration with W3 Total Cache in WordPress with step by step Screenshot
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/seo/best-pinging-services-for-wordpress/' rel='bookmark' title='Best Pinging services for WordPress'>Best Pinging services for WordPress</a></li>
<li><a href='http://shivasoft.in/blog/webtech/seo/more-than-15-seo-tips-for-your-wordpress-blogs/' rel='bookmark' title='More than 15 SEO Tips for your WordPress blogs'>More than 15 SEO Tips for your WordPress blogs</a></li>
<li><a href='http://shivasoft.in/blog/webtech/change-site-url-wordpress-error-breaks-site-structure/' rel='bookmark' title='Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure'>Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/dQf7rq6e40plEgNgXFDmUHXr74w/0/da"><img src="http://feedads.g.doubleclick.net/~a/dQf7rq6e40plEgNgXFDmUHXr74w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dQf7rq6e40plEgNgXFDmUHXr74w/1/da"><img src="http://feedads.g.doubleclick.net/~a/dQf7rq6e40plEgNgXFDmUHXr74w/1/di" border="0" ismap="true"></img></a></p><p style="text-align: justify;"><a title="Total Cache solution" href="http://wordpress.org/extend/plugins/w3-total-cache/" target="_blank">W3 Total Cache</a> is the industry known solution for the caching mechanism of WordPress blog. Even lots of hosting proving companies like <a title="Web Hosting Provider" href="http://www.hostgator.com/" target="_blank">HostGator </a>is suggesting the users to use this plugin for there wordpress blog. The &#8220;W3 Total Cache &#8221; has lots of advance feature and needs expert level of understanding to enable or disable those options. From many options available, there is the option of displaying &#8220;<a title="Google Speed Online API" href="https://code.google.com/apis/console/" target="_blank">Google Speed Online API</a>&#8221; widget on the dashboard of the WordPress which will display the performance of the website on scale of 100.</p>
<p>Getting started with Google Speed Online API:</p>
<p>Go to <a title="Google API Console" href="https://code.google.com/apis/console/" target="_blank">Google APIs Console</a> and navigate to &#8220;Services&#8221;.</p>
<div id="attachment_2579" class="wp-caption aligncenter" style="width: 301px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Google-API-Console.png"><img class="size-full wp-image-2579" title="Google API Console" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Google-API-Console.png" alt="Google API Console" width="291" height="225" /></a><p class="wp-caption-text">Google API Console</p></div>
<p><span id="more-2576"></span>Now go to &#8220;Page Speed Online API&#8221; listing and enable it.</p>
<div id="attachment_2581" class="wp-caption aligncenter" style="width: 506px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Google-Page-Speed-Online-API.png"><img class="size-full wp-image-2581" title="Google Page Speed Online API" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Google-Page-Speed-Online-API.png" alt="Google Page Speed Online API" width="496" height="147" /></a><p class="wp-caption-text">Google Page Speed Online API</p></div>
<p>Accept the terms of the service and navigate to &#8220;API Access&#8221; tab.</p>
<div id="attachment_2582" class="wp-caption aligncenter" style="width: 433px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Google-API-Access.png"><img class="size-full wp-image-2582" title="Google API Access" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Google-API-Access.png" alt="Google API Access" width="423" height="202" /></a><p class="wp-caption-text">Google API Access</p></div>
<p>Copy the API Key displayed in &#8220;Simple API Access&#8221; section as shown in below image:</p>
<div id="attachment_2583" class="wp-caption aligncenter" style="width: 491px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Simple-API-Access.png"><img class="size-full wp-image-2583" title="Google Simple API Access" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Simple-API-Access.png" alt="Google Simple API Access" width="481" height="251" /></a><p class="wp-caption-text">Google Simple API Access</p></div>
<p>I am assuming that the W3 Total Cache is already installed. So go to &#8220;<strong>Performance | General Settings</strong>&#8221; and Miscellaneous section.</p>
<div id="attachment_2584" class="wp-caption aligncenter" style="width: 346px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/W3-Total-Cache-Google-API-Setting.png"><img class="size-full wp-image-2584" title="W3 Total Cache Google API Setting" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/W3-Total-Cache-Google-API-Setting.png" alt="W3 Total Cache Google API Setting" width="336" height="188" /></a><p class="wp-caption-text">W3 Total Cache Google API Setting</p></div>
<p>Click on the Save all settings after entering the API key provided by the google and also dont forget to select the check box saying &#8220;Enable Google Page Speed dashboard widget&#8221;.</p>
<p>Now go to the dashboard and you will see the following type of report:</p>
<div id="attachment_2586" class="wp-caption aligncenter" style="width: 460px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/W3-Total-Cache-Google-API-Report.png"><img class="size-full wp-image-2586" title="W3 Total Cache Google API Report" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/W3-Total-Cache-Google-API-Report.png" alt="W3 Total Cache Google API Report" width="450" height="227" /></a><p class="wp-caption-text">W3 Total Cache Google API Report</p></div>
<p>I hope this article is very useful for most of the Web developers and the bloggers.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/seo/best-pinging-services-for-wordpress/' rel='bookmark' title='Best Pinging services for WordPress'>Best Pinging services for WordPress</a></li>
<li><a href='http://shivasoft.in/blog/webtech/seo/more-than-15-seo-tips-for-your-wordpress-blogs/' rel='bookmark' title='More than 15 SEO Tips for your WordPress blogs'>More than 15 SEO Tips for your WordPress blogs</a></li>
<li><a href='http://shivasoft.in/blog/webtech/change-site-url-wordpress-error-breaks-site-structure/' rel='bookmark' title='Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure'>Change Site URL &#8211; WordPress &#8211; Error &#8211; Breaks Site Structure</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=W8hbQBHT6ZM:Ue8nrPe80JM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=W8hbQBHT6ZM:Ue8nrPe80JM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=W8hbQBHT6ZM:Ue8nrPe80JM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=W8hbQBHT6ZM:Ue8nrPe80JM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=W8hbQBHT6ZM:Ue8nrPe80JM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=W8hbQBHT6ZM:Ue8nrPe80JM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/W8hbQBHT6ZM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/webtech/seo/google-speed-online-api-widget-integration-with-w3-total-cache-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/webtech/seo/google-speed-online-api-widget-integration-with-w3-total-cache-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>CSS – label control ignores the width style</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/sqnqyp_qztw/</link>
		<comments>http://shivasoft.in/blog/others/tips/css-label-ignores-the-width-style/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 06:27:49 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2541</guid>
		<description><![CDATA[CSS - label control ignores the width attribute in style
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/web/style-file-upload-control-in-asp-html/' rel='bookmark' title='Style File upload control in ASP / HTML'>Style File upload control in ASP / HTML</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/create-pure-css-based-menu-step-by-step-tutorial/' rel='bookmark' title='Create Pure CSS based Menu &#8211; Step by Step Tutorial'>Create Pure CSS based Menu &#8211; Step by Step Tutorial</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/highlight-current-field-using-jquery/' rel='bookmark' title='Highlight Current field using JQuery'>Highlight Current field using JQuery</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Pv0Gu4DT20cer6VuQuw7BudaMSk/0/da"><img src="http://feedads.g.doubleclick.net/~a/Pv0Gu4DT20cer6VuQuw7BudaMSk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Pv0Gu4DT20cer6VuQuw7BudaMSk/1/da"><img src="http://feedads.g.doubleclick.net/~a/Pv0Gu4DT20cer6VuQuw7BudaMSk/1/di" border="0" ismap="true"></img></a></p><p>Label tag does not work with css attribute &#8220;width&#8221; on some browsers like Chrome and Mozilla.</p>
<p>Simplest solution is :<br />
<strong>before applying css for width, make sure &#8220;float:left&#8221; is written for label control.</strong></p>
<p>Label elements are in-line style elements, so technically Chrome and Firefox are interpreting the CSS properly by not obeying my width declaration. <strong>In-line elements do not accept width attributes</strong>. The workaround is to force the label element to become a block level element by floating it.</p>
<p>&nbsp;</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/webtech/web/style-file-upload-control-in-asp-html/' rel='bookmark' title='Style File upload control in ASP / HTML'>Style File upload control in ASP / HTML</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/create-pure-css-based-menu-step-by-step-tutorial/' rel='bookmark' title='Create Pure CSS based Menu &#8211; Step by Step Tutorial'>Create Pure CSS based Menu &#8211; Step by Step Tutorial</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/highlight-current-field-using-jquery/' rel='bookmark' title='Highlight Current field using JQuery'>Highlight Current field using JQuery</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=sqnqyp_qztw:QM8RaZTxF6g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=sqnqyp_qztw:QM8RaZTxF6g:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=sqnqyp_qztw:QM8RaZTxF6g:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=sqnqyp_qztw:QM8RaZTxF6g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=sqnqyp_qztw:QM8RaZTxF6g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=sqnqyp_qztw:QM8RaZTxF6g:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/sqnqyp_qztw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/others/tips/css-label-ignores-the-width-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/others/tips/css-label-ignores-the-width-style/</feedburner:origLink></item>
		<item>
		<title>Sort comment in reverse order – WordPress</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/cN3jMhp8ows/</link>
		<comments>http://shivasoft.in/blog/others/tips/sort-comment-in-reverse-order-wordpress/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 08:13:04 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2550</guid>
		<description><![CDATA[PHP code to sort the comment in WordPress blog in reverse order
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/tips/how-to-change-the-meta-tag-link-in-wordpress/' rel='bookmark' title='How to change the Meta Tag link in WordPress'>How to change the Meta Tag link in WordPress</a></li>
<li><a href='http://shivasoft.in/blog/others/tips/wordpress-update-error-allowed-memory-size-exhausted/' rel='bookmark' title='wordpress update error &#8211; allowed memory size exhausted'>wordpress update error &#8211; allowed memory size exhausted</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/wordpress-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/' rel='bookmark' title='WordPress error &#8211; Briefly unavailable for Scheduled maintenance. Check back in a minute'>WordPress error &#8211; Briefly unavailable for Scheduled maintenance. Check back in a minute</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/53ULUL93cv4ewMgTG_Sv07co-6A/0/da"><img src="http://feedads.g.doubleclick.net/~a/53ULUL93cv4ewMgTG_Sv07co-6A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/53ULUL93cv4ewMgTG_Sv07co-6A/1/da"><img src="http://feedads.g.doubleclick.net/~a/53ULUL93cv4ewMgTG_Sv07co-6A/1/di" border="0" ismap="true"></img></a></p><p>In many cases the blogger may want to sort the comment of there WordPress blog by latest comment at top, like me.</p>
<p>Instead of installing any plugin, i have done following code changes in &#8220;<strong>comments.php</strong>&#8220;.<span id="more-2550"></span></p>
<p>Somewhere in &#8220;<strong>comments.php</strong>&#8220;, you will find below line of code -</p>
<pre class="brush: php; title: ; notranslate">
foreach ($comments as $comment) :
</pre>
<p>Add following code just above the for loop</p>
<pre class="brush: php; title: ; notranslate">
$comments = array_reverse($comments);
</pre>
<p>so, the final code will become</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
	/*Start By Jitendra*/
	$comments = array_reverse($comments);
	/*End By Jitendra*/
	foreach ($comments as $comment) :
?&gt;
</pre>
<p>I hope, this little trick will be very useful for few WordPress bloggers.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/tips/how-to-change-the-meta-tag-link-in-wordpress/' rel='bookmark' title='How to change the Meta Tag link in WordPress'>How to change the Meta Tag link in WordPress</a></li>
<li><a href='http://shivasoft.in/blog/others/tips/wordpress-update-error-allowed-memory-size-exhausted/' rel='bookmark' title='wordpress update error &#8211; allowed memory size exhausted'>wordpress update error &#8211; allowed memory size exhausted</a></li>
<li><a href='http://shivasoft.in/blog/webtech/web/wordpress-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/' rel='bookmark' title='WordPress error &#8211; Briefly unavailable for Scheduled maintenance. Check back in a minute'>WordPress error &#8211; Briefly unavailable for Scheduled maintenance. Check back in a minute</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=cN3jMhp8ows:eFyS0PBllMw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=cN3jMhp8ows:eFyS0PBllMw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=cN3jMhp8ows:eFyS0PBllMw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=cN3jMhp8ows:eFyS0PBllMw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=cN3jMhp8ows:eFyS0PBllMw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=cN3jMhp8ows:eFyS0PBllMw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/cN3jMhp8ows" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/others/tips/sort-comment-in-reverse-order-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/others/tips/sort-comment-in-reverse-order-wordpress/</feedburner:origLink></item>
		<item>
		<title>Eclipse Error – Unable to refresh from server in Force.com</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/k2koY6nXltA/</link>
		<comments>http://shivasoft.in/blog/salesforce/eclipse-error-unable-to-refresh-from-server-in-force-com/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 14:30:12 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2533</guid>
		<description><![CDATA[Solve the force.com error of the eclipse while getting the refresh from server. "com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor"
No related posts.]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/7hkrbGRw2fYDtFIR46uPVfHXslE/0/da"><img src="http://feedads.g.doubleclick.net/~a/7hkrbGRw2fYDtFIR46uPVfHXslE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7hkrbGRw2fYDtFIR46uPVfHXslE/1/da"><img src="http://feedads.g.doubleclick.net/~a/7hkrbGRw2fYDtFIR46uPVfHXslE/1/di" border="0" ismap="true"></img></a></p><p>This morning when i started the eclipse and tried to refresh the contents from salesforce server, i got an error something like &#8220;<strong>com.salesforce. ide.api.metadata.types. Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor</strong>&#8220;.<br />
I started searching for the solution and found below solution on salesforce community.<br />
Note &#8211; I was using Windows 7 operating system.</p>
<p><strong>Solution 1:</strong></p>
<ul>
<li>Use JRE v6 update 27 &#8211; 64bit (downgraded from JRE 7)</li>
<li>Use JDK v6 update 27 &#8211; 64 bit (downgraded from JDK 7)</li>
<li>Re-installed Eclipse SDK 3.6.2</li>
</ul>
<p><span id="more-2533"></span>In short you can say that you need to downgrade JDK installation.</p>
<p>However, uninstall and re-install would have been taken much of my time and therefore i started to search for the different solution and found below method and <strong>Solution 2 &#8211; worked for me</strong>!!!</p>
<hr />
<p><strong>Solution 2:</strong><br />
Use the -clean command of eclipse while opening. It can be done by adding the attribute &#8220;-clean&#8221; in the shortcut icon of the eclipse.</p>
<blockquote><p>eclipse.exe -clean</p></blockquote>
<p>or add the following line to the &#8220;myeclipse.ini&#8221; file, near the top:</p>
<blockquote><p>-clean</p></blockquote>
<p>as you can see in below image , right click on eclipse shortcut and add the &#8220;clean&#8221;.</p>
<div id="attachment_2596" class="wp-caption aligncenter" style="width: 379px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/add-clean-attribute-in-eclipse-shortcut.png"><img class="size-full wp-image-2596" title="add clean attribute in eclipse shortcut" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/add-clean-attribute-in-eclipse-shortcut.png" alt="add clean attribute in eclipse shortcut" width="369" height="321" /></a><p class="wp-caption-text">add clean attribute in eclipse shortcut</p></div>
<hr />
<p><strong>Solution 3:</strong><br />
<strong>Case : If you have more than one JRE installed.</strong><br />
<strong> Solution :</strong><br />
In Eclipse &#8220;<strong>Windows | Preferences | Java | Installed JREs</strong>&#8220;, select JRE 6, if entry is not visible and JRE 6 is installed then manually add the JRE and select.</p>
<div id="attachment_2553" class="wp-caption aligncenter" style="width: 498px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/12/Eclipse-force.com-installed-JRE.png"><img class="size-full wp-image-2553 " title="Eclipse force.com installed JRE" src="http://shivasoft.in/blog/wp-content/uploads/2011/12/Eclipse-force.com-installed-JRE.png" alt="Eclipse force.com installed JRE" width="488" height="372" /></a><p class="wp-caption-text">Eclipse force.com installed JRE</p></div>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=k2koY6nXltA:kD-d3cyfRsk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=k2koY6nXltA:kD-d3cyfRsk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=k2koY6nXltA:kD-d3cyfRsk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=k2koY6nXltA:kD-d3cyfRsk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=k2koY6nXltA:kD-d3cyfRsk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=k2koY6nXltA:kD-d3cyfRsk:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/k2koY6nXltA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/eclipse-error-unable-to-refresh-from-server-in-force-com/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/eclipse-error-unable-to-refresh-from-server-in-force-com/</feedburner:origLink></item>
		<item>
		<title>Latest Salesforce Interview Questions – Part 4 – Related to Dynamic Apex</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/UKpnrYmUrm4/</link>
		<comments>http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 19:59:23 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Apex]]></category>
		<category><![CDATA[Visualforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2501</guid>
		<description><![CDATA[Most Frequently Asked interview questions of Apex, Dynamic Apex, SOSL, Visualforce, SOQL in Salesforce.com SFDC
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions-%e2%80%93-part-3/' rel='bookmark' title='Salesforce Interview Questions – Part 3'>Salesforce Interview Questions – Part 3</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions/' rel='bookmark' title='Salesforce Interview Questions &#8211; Part 1'>Salesforce Interview Questions &#8211; Part 1</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions-%e2%80%93-part-2/' rel='bookmark' title='Salesforce Interview Questions – Part 2'>Salesforce Interview Questions – Part 2</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/EYMuit-o6L8oBDSp7RIqhhmKWqc/0/da"><img src="http://feedads.g.doubleclick.net/~a/EYMuit-o6L8oBDSp7RIqhhmKWqc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EYMuit-o6L8oBDSp7RIqhhmKWqc/1/da"><img src="http://feedads.g.doubleclick.net/~a/EYMuit-o6L8oBDSp7RIqhhmKWqc/1/di" border="0" ismap="true"></img></a></p><div style="background-color: #f5e2ba; border: 1px solid #ccc; width: 100%; padding-top: 10px; margin-top: 10px; color: #140b5c;">
<p><a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 1" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions/" target="_blank"> Part &#8211; 1</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 2" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions-%E2%80%93-part-2/" target="_blank">Part &#8211; 2</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 3" href="http://shivasoft.in/blog/tips/salesforce-interview-questions-%E2%80%93-part-3/" target="_blank"> Part &#8211; 3</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 4 - Dynamic Apex" href="http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/" target="_blank">Part &#8211; 4 &#8211; Dynamic Apex</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 5" href="http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/" target="_blank">Part &#8211; 5 </a></p>
</div>
<p>This part of the interview question mainly focus on the dynamic Apex feature of the salesforce.com .</p>
<p><strong>30 : What is the dynamic Apex?<br />
Ans :</strong><br />
Dynamic Apex enables developers to create more flexible applications by providing them with the ability to <strong>&#8220;Access sObject and field describe information&#8221;, &#8220;Write Dynamic SOQL Queries&#8221;, &#8220;Write Dynamic SOSL Queries&#8221;</strong> and <strong>&#8220;Dynamic DML&#8221;</strong>.</p>
<hr />
<p><strong>31 : How to get the list of all available sobject in salesforce database using Apex (Dynamic Apex)?<br />
Ans:</strong><br />
<span id="more-2501"></span></p>
<pre class="brush: java; title: ; notranslate">
Map&lt;String, Schema.SObjectType&gt; m =  Schema.getGlobalDescribe();
</pre>
<hr />
<p><strong>32 : How to create instance of sobject dynamically? Normally the sobject is created like &#8220;Account a = new Account();&#8221;. But if you are in situation that you don&#8217;t know which sobject is going to be instantiated ? Means it will be decided at runtime, how you will handle it? Hint : Use Dynamic Apex.<br />
Ans:</strong></p>
<pre class="brush: java; title: ; notranslate">
public SObject getNewSobject(String t)
{

	// Call global describe to get the map of string to token.
	Map&lt;String, Schema.SObjectType&gt; gd = Schema.getGlobalDescribe();

	// Get the token for the sobject based on the type.
	Schema.SObjectType st = gd.get(t);

	// Instantiate the sobject from the token.
	Sobject s = st.newSobject();

	return s;
}
</pre>
<hr />
<p><strong>33 : How to get all the fields of sObject using dynamic Apex?<br />
Ans:</strong></p>
<pre class="brush: java; title: ; notranslate">
Map&lt;String, Schema.SObjectType&gt; m  = Schema.getGlobalDescribe() ;
Schema.SObjectType s = m.get('API_Name_Of_SObject') ;
Schema.DescribeSObjectResult r = s.getDescribe() ;
Map fields = r.fields.getMap() ;
</pre>
<hr />
<p><strong>34 : How to get all the required fields of sObject dynamically?<br />
Ans:</strong><br />
There is no direct property available in Apex dynamic API to represent the required field. However there is another way to know about it.<br />
If any field have below three properties then it is mandatory field.</p>
<ol>
<li>If it is Creatable</li>
<li>If it is not nillable and</li>
<li>If it does not have any default value</li>
</ol>
<pre class="brush: java; title: ; notranslate">
Map&lt;String, Schema.SObjectType&gt; m  = Schema.getGlobalDescribe() ;
Schema.SObjectType s = m.get(so.apiName) ;
Schema.DescribeSObjectResult r = s.getDescribe() ;
Map fields = r.fields.getMap() ;

for(String f : fields.keyset())
{
	Schema.DescribeFieldResult desribeResult = fields.get(f).getDescribe();
	if( desribeResult.isCreateable() &amp;&amp; !desribeResult.isNillable() &amp;&amp; !desribeResult.isDefaultedOnCreate() )
	{
//This is mandatory / required field
	}
}
</pre>
<hr />
<p><strong>35 : How to display error messages in the visualforce page ?</strong><br />
<strong> Ans:</strong><br />
In Apex use below code to create the error message for visualforce.</p>
<pre class="brush: java; title: ; notranslate">
Apexpages.addMessage( new ApexPages.Message (ApexPages.Severity.ERROR, 'Required fields are missing. '));
</pre>
<p>in Visualforce page add below tag where you want to display the error message.</p>
<p>&lt;apex:pageMessages &gt;&lt;/apex:pageMessages&gt;</p>
<hr />
<p><strong>36 : What is property in Apex? Explain with advantages.<br />
Ans: </strong><br />
Apex mainly consist of the syntax from the well known programming language Java. As a practice of <strong>encapsulation </strong>in java we declare any variable as private and then creates the setters and getters for that variable.</p>
<pre class="brush: java; title: ; notranslate">
private String name;
public void setName(String n)
{
  name = n;
}
public String getName()
{
 return name;
}
</pre>
<p>However, the Apex introduced the new concept of property from language C# as shown below:</p>
<pre class="brush: java; title: ; notranslate">
public String name {get; set;}
</pre>
<p>As we can see how simple the code is and instead of using nearly 8 to 11 lines all done in 1 line only. It will be very useful when lots of member is declared in Apex class. It has another advantage in &#8220;number of lines of code&#8221; limit by salesforce which will drastically reduced.</p>
<hr />
<p><strong>37 : What is the controller extension ?<br />
Ans:</strong><br />
Any apex class having a public constructor with Custom Controller or Standard Controller object as a single argument is known as controller extension.</p>
<hr />
<p><strong>38 : Explain the need or importance of the controller extension.<br />
Ans:</strong><br />
Controller extension is very useful and important concept introduced by the salesforce recently. It gives the power to programmer to extend the functionality of existing custom controller or standard controller.<br />
A Visualforce can have a single Custom controller or standard controller but many controller extensions.<br />
we can say that the custom extension is the supporter of custom or standard controller.<br />
Consider one example : If there is one controller written and used by the multiple visualforce pages and one of them needs some extra logic. Then instead of writing that logic to controller class (Which is used by many visualforce pages) we can create a controller extension and apply to that page only.</p>
<hr />
<p><strong>39 : How to read the parameter value from the URL in Apex?<br />
Ans:</strong><br />
Consider that the parameter name is &#8220;RecordType&#8221;.</p>
<pre class="brush: java; title: ; notranslate">
String recordType = Apexpages.currentPage().getParameters().get('RecordType');
</pre>
<hr />
<div style="background-color: #f5e2ba; border: 1px solid #ccc; width: 100%; padding-top: 10px; margin-top: 10px; color: #140b5c;">
<p><a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 1" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions/" target="_blank"> Part &#8211; 1</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 2" href="http://shivasoft.in/blog/webtech/salesforce/salesforce-interview-questions-%E2%80%93-part-2/" target="_blank">Part &#8211; 2</a> | <a style="color: #140b5c !important;" title="Salesforce Interview Questions Part 3" href="http://shivasoft.in/blog/tips/salesforce-interview-questions-%E2%80%93-part-3/" target="_blank"> Part &#8211; 3</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 4 - Dynamic Apex" href="http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/" target="_blank">Part &#8211; 4 &#8211; Dynamic Apex</a> | <a style="color: #140b5c !important;" title="Latest Salesforce Interview Questions Part 5" href="http://shivasoft.in/blog/salesforce/salesforce-interview-questions-part-5/" target="_blank">Part &#8211; 5 </a></p>
</div>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions-%e2%80%93-part-3/' rel='bookmark' title='Salesforce Interview Questions – Part 3'>Salesforce Interview Questions – Part 3</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions/' rel='bookmark' title='Salesforce Interview Questions &#8211; Part 1'>Salesforce Interview Questions &#8211; Part 1</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/salesforce-interview-questions-%e2%80%93-part-2/' rel='bookmark' title='Salesforce Interview Questions – Part 2'>Salesforce Interview Questions – Part 2</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=UKpnrYmUrm4:HMZoyHr5kpk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=UKpnrYmUrm4:HMZoyHr5kpk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=UKpnrYmUrm4:HMZoyHr5kpk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=UKpnrYmUrm4:HMZoyHr5kpk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=UKpnrYmUrm4:HMZoyHr5kpk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=UKpnrYmUrm4:HMZoyHr5kpk:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/UKpnrYmUrm4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/</feedburner:origLink></item>
		<item>
		<title>Getting started with Apex debug logs in salesforce</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/O4XfWxGpk5o/</link>
		<comments>http://shivasoft.in/blog/salesforce/getting-started-with-apex-debug-logs-in-salesforce/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 16:37:09 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[Apex]]></category>
		<category><![CDATA[Visualforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2499</guid>
		<description><![CDATA[Introduction to debug logs in salesforce with step by step procedure and screenshot.
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/' rel='bookmark' title='Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex'>Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/' rel='bookmark' title='Getting record from other Salesforce organization OR communication between multiple salesforce organization'>Getting record from other Salesforce organization OR communication between multiple salesforce organization</a></li>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/VMdeMENt91yN6QK-kQHDPfRWWGU/0/da"><img src="http://feedads.g.doubleclick.net/~a/VMdeMENt91yN6QK-kQHDPfRWWGU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VMdeMENt91yN6QK-kQHDPfRWWGU/1/da"><img src="http://feedads.g.doubleclick.net/~a/VMdeMENt91yN6QK-kQHDPfRWWGU/1/di" border="0" ismap="true"></img></a></p><p>For the newbie and intermediate developers, most of the time it becomes very necessary to log the program at some stage / line and look into those that what actually is happening with the code.</p>
<p>In salesforce it is very easy to log and track the apex program. To log the apex code use below line of code:</p>
<blockquote><p>System.debug(&#8220;Your message&#8221;);<br />
or<br />
System.debug(Logginglevel,&#8221;Your Message&#8221;);</p></blockquote>
<p>Log levels available in Apex are (listed from lowest to highest) :</p>
<ul>
<li>ERROR</li>
<li>WARN</li>
<li>INFO</li>
<li>DEBUG</li>
<li>FINE</li>
<li>FINER</li>
<li>FINEST</li>
</ul>
<p><span id="more-2499"></span>Log levels are cumulative. For example, if the lowest level, ERROR, is specified, only debug methods with the log level of ERROR are logged. If the next level, WARN, is specified, the debug log contains debug methods specified as either ERROR or WARN.<br />
In the following example, the string MsgTxt is not written to the debug log because the log level is ERROR, and the debug method has a level of INFO.</p>
<pre class="brush: java; title: ; notranslate">
System.debug(Logginglevel.ERROR);
System.debug(Logginglevel.INFO,'MsgTxt');
</pre>
<p>For more information on log levels, see “Setting Debug Log Filters” in the Salesforce online help.</p>
<p>Lets assume you have written below line of code in one of the controller extension&#8217;s constructor :</p>
<pre class="brush: java; title: ; notranslate">
System.debug('*** In the constructor of extension class ***');
</pre>
<p>First step is to enable the log for particular user who is going to (reason to) execute that code. Go to &#8220;<strong>Setup | Administration Setup | Monitoring | Debug Logs</strong>&#8220;.</p>
<div id="attachment_2514" class="wp-caption aligncenter" style="width: 237px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/11/Debug-Logs-in-Monitoring-section-of-Administration-setup-salesforce.png"><img class="size-full wp-image-2514" title="Debug Logs in Monitoring section of Administration setup - salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2011/11/Debug-Logs-in-Monitoring-section-of-Administration-setup-salesforce.png" alt="Debug Logs in Monitoring section of Administration setup - salesforce" width="227" height="436" /></a><p class="wp-caption-text">Debug Logs in Monitoring section of Administration setup - salesforce</p></div>
<p>To enable the log for this user click on new button as shown in below image.</p>
<div id="attachment_2510" class="wp-caption aligncenter" style="width: 448px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/11/List-of-Users-for-Debug-log-enabled-Salesforce.png"><img class="size-full wp-image-2510" title="List of Users for Debug log enabled Salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2011/11/List-of-Users-for-Debug-log-enabled-Salesforce.png" alt="List of Users for Debug log enabled Salesforce" width="438" height="183" /></a><p class="wp-caption-text">List of Users for Debug log enabled Salesforce</p></div>
<p>on next screen select the user and save the operation.</p>
<p>Now execute that visualforce page on which the code is written.</p>
<p>After execution again go to the Debug Logs page, where the user is added. You will see the screen like below</p>
<div id="attachment_2511" class="wp-caption aligncenter" style="width: 481px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/11/View-Debug-logs-in-Salesforce.png"><img class="size-full wp-image-2511  " title="View Debug logs in Salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2011/11/View-Debug-logs-in-Salesforce.png" alt="View Debug logs in Salesforce" width="471" height="198" /></a><p class="wp-caption-text">View Debug logs in Salesforce</p></div>
<p>As you can see now that new row is added in &#8220;Debug Logs&#8221; section. click on the &#8220;view&#8221; button.</p>
<div id="attachment_2512" class="wp-caption aligncenter" style="width: 498px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/11/Debug-statement-printed-in-debug-logs.png"><img class="size-full wp-image-2512 " title="Debug statement printed in debug logs" src="http://shivasoft.in/blog/wp-content/uploads/2011/11/Debug-statement-printed-in-debug-logs.png" alt="Debug statement printed in debug logs" width="488" height="90" /></a><p class="wp-caption-text">Debug statement printed in debug logs</p></div>
<p>And the log is printed successfully as shown above.</p>
<p>Normally the debug log gets confused with the System log. Difference in both log is that , the System log contains all the system related information, anonymous apex execution etc however the debug log contains all the debug statements and program execution related to the user for which the debug is granted.</p>
<p>For any query or suggestions, please leave the comments. your feedback is very important.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/salesforce/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4/' rel='bookmark' title='Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex'>Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/getting-record-from-one-salesforce-organization-to-other/' rel='bookmark' title='Getting record from other Salesforce organization OR communication between multiple salesforce organization'>Getting record from other Salesforce organization OR communication between multiple salesforce organization</a></li>
<li><a href='http://shivasoft.in/blog/webtech/salesforce-tutorial-create-simple-ajax-based-visualforce-page/' rel='bookmark' title='Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page'>Salesforce Tutorial &#8211; Create Simple Ajax based Visualforce page</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=O4XfWxGpk5o:3qSoLN0SaCw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=O4XfWxGpk5o:3qSoLN0SaCw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=O4XfWxGpk5o:3qSoLN0SaCw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=O4XfWxGpk5o:3qSoLN0SaCw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=O4XfWxGpk5o:3qSoLN0SaCw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=O4XfWxGpk5o:3qSoLN0SaCw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/O4XfWxGpk5o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/getting-started-with-apex-debug-logs-in-salesforce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/getting-started-with-apex-debug-logs-in-salesforce/</feedburner:origLink></item>
		<item>
		<title>SAP Security Interview Questions, Tips and Tricks</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/50FYXT3JI5Y/</link>
		<comments>http://shivasoft.in/blog/others/tips/sap-security-interview-questions-tips-and-tricks/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 08:58:34 +0000</pubDate>
		<dc:creator>santosh_karemore</dc:creator>
				<category><![CDATA[SAP]]></category>
		<category><![CDATA[Tech Tips]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2487</guid>
		<description><![CDATA[Important Must read Interview Questions of SAP Security, Tips and Tricks
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/sap/sap-tips-and-tricks-ccms-computing-center-management-system-monitoring/' rel='bookmark' title='SAP Tips and Tricks – CCMS –  COMPUTING CENTER MANAGEMENT SYSTEM MONITORING'>SAP Tips and Tricks – CCMS –  COMPUTING CENTER MANAGEMENT SYSTEM MONITORING</a></li>
<li><a href='http://shivasoft.in/blog/others/sap/sap-r3-audit-review-checklist/' rel='bookmark' title='SAP R/3 Audit Review Checklist'>SAP R/3 Audit Review Checklist</a></li>
<li><a href='http://shivasoft.in/blog/others/sap/how-to-change-sap-tables-without-coding-or-debugging/' rel='bookmark' title='How to change SAP tables without coding or debugging'>How to change SAP tables without coding or debugging</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/FNSrMa8UP7Zu5YmpjNfa_jbXK0k/0/da"><img src="http://feedads.g.doubleclick.net/~a/FNSrMa8UP7Zu5YmpjNfa_jbXK0k/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FNSrMa8UP7Zu5YmpjNfa_jbXK0k/1/da"><img src="http://feedads.g.doubleclick.net/~a/FNSrMa8UP7Zu5YmpjNfa_jbXK0k/1/di" border="0" ismap="true"></img></a></p><p><strong>1 .  How many fields can be present in one Authorization object?</strong><br />
<strong>Ans :</strong> 10 fields.</p>
<hr />
<p><strong>2 .  Which Authorization Objects are Checked in Role Maintenance ?</strong><br />
<strong>Ans:</strong><br />
The role maintenance functions (and the profile generator) check the following authorization objects.<br />
<span id="more-2487"></span><br />

<table id="wp-table-reloaded-id-4-no-1" class="wp-table-reloaded wp-table-reloaded-id-4">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Authorization Object</th><th class="column-2">Description</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">S_USER_AUT</td><td class="column-2">User master maintenance: Authorizations<br />
This authorization object defines which authorizations the administrator can process. You can use the activities to specify the types of processing (such as creating, deleting, displaying change documents).</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">S_USER_GRP</td><td class="column-2">User master maintenance: User groups<br />
The authorization object is used in role maintenance when assigning users to roles and during the user master comparison.<br />
You can divide user administration between several administrators with this authorization object, by assigning only a certain user group to an administrator. You can use the activities to specify the administrator’s processing types for the group (such as creating, deleting, and archiving).</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">S_USER_PRO</td><td class="column-2">User master maintenance: Authorization profiles<br />
Profiles are protected with this authorization object. You can use the activities to specify the administrator's processing types for the profile (such as creating, deleting, and archiving).</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">S_USER_AGR</td><td class="column-2">Authorization system: Check for roles<br />
This authorization object protects roles. The roles combine users into groups to assign various properties to them; in particular, transactions and authorization profiles. <br />
You can use this authorization object together with the authorization objects S_USER_GRP, S_USER_AUT, S_USER_PRO, S_USER_TCD, and S_USER_VAL to set up a distributed user administration.</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">S_USER_TCD</td><td class="column-2">Authorization system: Transactions in roles<br />
This authorization object determines the transactions that an administrator can assign to a role, and the transactions for which he or she can assign transaction authorization (object S_TCODE).<br />
Note that a user can only maintain ranges of transactions for the S_TCODE authorization object in the Profile Generator if he or she has full authorization for the S_USER_TCD authorization object. Otherwise, he or she can only maintain individual values for the S_TCODE object.</td>
	</tr>
	<tr class="row-7 odd">
		<td class="column-1">S_USER_VAL</td><td class="column-2">Authorization system: Field values in roles<br />
This authorization object allows the restriction of values that a system administrator can insert or change in a role in the Profile Generator.<br />
This authorization object relates to all field values with the exception of the values for the object S_TCODE.<br />
The authorization to include transactions in a role or to change the transaction start authorization in a role is linked to the authorization object S_USER_TCD.</td>
	</tr>
	<tr class="row-8 even">
		<td class="column-1">S_USER_SYS</td><td class="column-2">Authorization object for system assignment in the Central User Administration (CUA).<br />
You can distribute users from a central system to various child systems of a system group. The object S_USER_SYS is used to check the systems to which the user administrator can assign the users. This authorization object is also checked when setting up the CUA.</td>
	</tr>
	<tr class="row-9 odd">
		<td class="column-1">S_USER_SAS</td><td class="column-2">User master maintenance: System-specific assignments<br />
The authorization object S_USER_SAS is checked in transactions SU01, SU10, PFCG, and PFUD when you assign roles, profiles, and systems to users. It represents a development of the authorization objects S_USER_GRP, S_USER_AGR, S_USER_PRO, and S_USER_SYS, which the system previously checked when users made assignments. If you do not activate the authorization object S_USER_SAS using the Customizing switch, the previously-used authorization objects are checked. <br />
To activate authorization object S_USER_SAS, use transaction SM30 to create the Customizing switch CHECK_S_USER_SAS with the value YES in the table PRGN_CUST. All authorization checks for the objects S_USER_AGR, S_USER_PRO, S_USER_GRP, and S_USER_SYS with the activity assign are replaced by authorization checks for the object S_USER_SAS.</td>
	</tr>
	<tr class="row-10 even">
		<td class="column-1">S_USER_ADM</td><td class="column-2">Administration functions for user and authorization administration.<br />
The authorization object S_USER_ADM protects general Customizing and administration tasks for user and authorization administration. It consists solely of the authorization field S_ADM_AREA.<br />
Until now, there was only the fixed value CHKSTDPWD, with which special users (such as SAP*) could be displayed, including their default passwords. SAP extends additional fixed values as required for other general administration functions in the area of user and authorization administration, which are listed in SAP Note 704307.</td>
	</tr>
</tbody>
</table>
</p>
<p><strong><br />
</strong></p>
<hr />
<p><strong>3 .  Which T-Codes are used to see overview of the Authorization Object and Profile details?</strong><br />
<strong> Ans:</strong><br />
SU03 &#8211; overview of any authorization Object<br />
SU02 &#8211; to see the details of profiles.</p>
<p><strong>SU21 </strong>also provides the same editing structure as <strong>SU03</strong> but we can create a new authorization object using SU21. Here, we need to click on “<strong>Display Object Documentation</strong>” button to see the documentation for the authoriztion Object and we need to click on “<strong>Permitted activity values</strong>” to see the list of permitted activities for the fields.</p>
<p>These details are fetched from table <strong>TACT</strong>.</p>
<hr />
<p><strong>4. How to restrict the user access to one particular table in display mode ?</strong><br />
<strong> Ans :</strong> If the system is BASIS 700, we can use the authorization object <strong>S_TABU_NAM</strong>. In this auth. Object, we can maintain the values for required <strong>activity</strong> and the<strong> table name</strong>.<br />
If the system version is lower than 700, and the table is z* table then</p>
<ul>
<li>Create a new authorization Group using SE54.</li>
<li>Assign the table in question to the newly created authorization Group in table <strong>TDDAT</strong> using <strong>SM30</strong>.</li>
</ul>
<p>If the table is SAP standard table then we can restrict user access by creating new tcode in <strong>SE93</strong>.</p>
<hr />
<p><strong>5.How to check the table Logs ?<br />
Ans: </strong><br />
First, we need to check if the logging is activated for table using tcode <strong>SE13</strong>. If table logging is enabled then we can see the table logs in t-code <strong>SCU3</strong>.</p>
<hr />
<p><strong>6. What&#8217;s the basic difference in between SU22 &amp; SU24 ?</strong><br />
<strong> Ans</strong>:<br />
SU22 displays and updates the values in tables USOBT and USOBX, while SU24 does the same in tables USOBT_C and USOBX_C. The _C stands for Customer. The profile generator gets its data from the _C tables. In the USOBT and USOBX tables the values are the SAP standard values as shown in SU24. With SU25 one can (initially) transfer the USOBT values to the USOBT_C table.</p>
<hr />
<p><strong>7. What is the difference between USOBX_C and USOBT_C ?</strong><br />
<strong> Ans:</strong><br />
The table USOBX_C defines which authorization checks are to be performed within a transaction and which not (despite authority- check command programed). This table also determines which authorization checks are maintained in the Profile Generator.<br />
The table USOBT_C defines for each transaction and for each authorization object which default values an authorization created from the authorization object should have in the Profile Generator.</p>
<hr />
<p><strong>8. What does user compare do ?</strong><br />
<strong> Ans:</strong><br />
If you are also using the role to generate authorization profiles, then you should note that the generated profile is not entered in the user master record until the user master records have been compared. You can automate this by scheduling report PFCG_TIME_DEPENDENCY on a daily or by executing the t-code PFUD.</p>
<hr />
<p><strong>9. Can we convert Authorization field to Organizational field ?</strong><br />
<strong> Ans:</strong><br />
Authorization field can be changed to Organization field using <strong>PFCG_ORGFIELD_CREATE</strong> or <strong>ZPFCG_ORGFIELD_CREATE</strong>.<br />
Use SE38 or SA38 to run the above report.</p>
<ul>
<li>Organizational level fields should only be created before you start setting up your system. If you create organizational level fields later, you might have to do an impact analysis. The authentication data may have to be post processed in roles.</li>
<li>The fields &#8220;<strong>Activity</strong>&#8220;, &#8220;<strong>ACTVT</strong>&#8221; and &#8220;<strong>Transaction code</strong>&#8220;, &#8220;<strong>TCD</strong>&#8221; cannot be converted into an organizational level field.</li>
</ul>
<p>In addition, all affected roles are analyzed and the authorization data is adjusted. The values of the authorization field which is now to become the organizational level field are removed and entered into the organizational level data of the role.<br />
<span style="text-decoration: underline;"><strong>Note:</strong></span> Table for Organizational Element- USORG. Refer to Note 323817 for more detail.</p>
<hr />
<p><strong>10. What is user buffer ?</strong><br />
<strong> Ans :</strong><br />
When a user logs on to the SAP R/3 System, a user buffer is built containing all authorizations for that user. Each user has their own individual user buffer. For example, if user Smith logs on to the system, his user buffer contains all authorizations of role USER_SMITH_ROLE. The user buffer can be displayed in transaction SU56.<br />
A user would fail an authorization check if:</p>
<ul>
<li> The authorization object does not exist in the user buffer</li>
<li>The values checked by the application are not assigned to the authorization object in the user buffer</li>
<li>The user buffer contains too many entries and has overflowed. The number of entries in the user buffer can be controlled using the system profile parameter auth/number_in_userbuffer.</li>
</ul>
<hr />
<p><strong>11. How to remove duplicate roles with different start and end date from user master ?</strong><br />
<strong> Ans:</strong><br />
You can use PRGN_COMPRESS_TIMES to do this. Please refer to note 365841 for more info.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/sap/sap-tips-and-tricks-ccms-computing-center-management-system-monitoring/' rel='bookmark' title='SAP Tips and Tricks – CCMS –  COMPUTING CENTER MANAGEMENT SYSTEM MONITORING'>SAP Tips and Tricks – CCMS –  COMPUTING CENTER MANAGEMENT SYSTEM MONITORING</a></li>
<li><a href='http://shivasoft.in/blog/others/sap/sap-r3-audit-review-checklist/' rel='bookmark' title='SAP R/3 Audit Review Checklist'>SAP R/3 Audit Review Checklist</a></li>
<li><a href='http://shivasoft.in/blog/others/sap/how-to-change-sap-tables-without-coding-or-debugging/' rel='bookmark' title='How to change SAP tables without coding or debugging'>How to change SAP tables without coding or debugging</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=50FYXT3JI5Y:lqKJHbHMwlM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=50FYXT3JI5Y:lqKJHbHMwlM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=50FYXT3JI5Y:lqKJHbHMwlM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=50FYXT3JI5Y:lqKJHbHMwlM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=50FYXT3JI5Y:lqKJHbHMwlM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=50FYXT3JI5Y:lqKJHbHMwlM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/50FYXT3JI5Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/others/tips/sap-security-interview-questions-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/others/tips/sap-security-interview-questions-tips-and-tricks/</feedburner:origLink></item>
		<item>
		<title>Deep  dive into Junction object – Create many to many relationship in Salesforce</title>
		<link>http://feedproxy.google.com/~r/shivasoft/home/~3/j4rD3r6LTcY/</link>
		<comments>http://shivasoft.in/blog/salesforce/deep-drive-in-junction-object-create-many-to-many-relationship-in-salesforce/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 08:55:23 +0000</pubDate>
		<dc:creator>jitendra</dc:creator>
				<category><![CDATA[Salesforce]]></category>

		<guid isPermaLink="false">http://shivasoft.in/blog/?p=2473</guid>
		<description><![CDATA[Article to show step by step process of creating junction object for Many to Many relationship in salesforce and impact of deleting one master record on others
Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/tips/difference-in-master-detail-relationship-and-look-up-relationship-salesforce-interview-question/' rel='bookmark' title='Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question'>Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/where-are-the-reports-for-my-custom-object-with-related-objects-in-salesforce/' rel='bookmark' title='Where are the reports for my custom object with related objects in salesforce?'>Where are the reports for my custom object with related objects in salesforce?</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n/' rel='bookmark' title='Step by Step Salesforce Tutorial – Creating custom object – 1 of 6'>Step by Step Salesforce Tutorial – Creating custom object – 1 of 6</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Z7xlYwA4Zv2NISPyEjUVycohWYQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/Z7xlYwA4Zv2NISPyEjUVycohWYQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Z7xlYwA4Zv2NISPyEjUVycohWYQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/Z7xlYwA4Zv2NISPyEjUVycohWYQ/1/di" border="0" ismap="true"></img></a></p><p>In Interview for the salesforce technology, one common question asked is how to implement the many to many relationship. If we answer that using<strong> junction object</strong> then there next question comes how ? explain it and after that, next question will be what happen if i delete one master record ?</p>
<p>So, in this article i will first show you that how to create custom objects, how to relate them and what will happen if we delete master or child?</p>
<p>here i am going to assume that we want to relate <strong>A </strong>and <strong>B. </strong>Let us assume that we have two custom object -<strong> A</strong> and <strong>B</strong>.</p>
<p>To provide the many to many relationship between A and B, we will need to create one more object let&#8217;s say it would be <strong>C</strong>, it will be called as <strong>junction object</strong>.</p>
<p>So, start with creating Object A.</p>
<div id="attachment_2475" class="wp-caption aligncenter" style="width: 431px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/10/Creating-Custom-object-in-salesforce.png"><img class="size-full wp-image-2475 " title="Creating Custom object in salesforce" src="http://shivasoft.in/blog/wp-content/uploads/2011/10/Creating-Custom-object-in-salesforce.png" alt="Creating Custom object in salesforce" width="421" height="365" /></a><p class="wp-caption-text">Creating Custom object in salesforce</p></div>
<p><span id="more-2473"></span>In same way, as shown in above image create B and C. For the simplicity of the example i have not added any field in Object A and B. By default Name field is provided by the salesforce on all objects.</p>
<p>We are going to use the object <strong>C as a junction object </strong>for A and B.</p>
<p>on object C, create &#8220;first Master-Detail&#8221; field and select object A as parent. This will be <strong>Primary Master &#8211; Detail relationship.</strong></p>
<div id="attachment_2476" class="wp-caption aligncenter" style="width: 459px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/10/Salesforce-Master-Detail-relationship-select-Master-object.png"><img class="size-full wp-image-2476" title="Salesforce Master-Detail relationship - select Master object" src="http://shivasoft.in/blog/wp-content/uploads/2011/10/Salesforce-Master-Detail-relationship-select-Master-object.png" alt="Salesforce Master-Detail relationship - select Master object" width="449" height="283" /></a><p class="wp-caption-text">Salesforce Master-Detail relationship - select Master object</p></div>
<p>In next screen give the name of the field.</p>
<div id="attachment_2477" class="wp-caption aligncenter" style="width: 492px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/10/Salesforce-Master-Detail-relationship-Give-the-field-Name.png"><img class="size-full wp-image-2477 " title="Salesforce Master-Detail relationship - Give the field Name" src="http://shivasoft.in/blog/wp-content/uploads/2011/10/Salesforce-Master-Detail-relationship-Give-the-field-Name.png" alt="Salesforce Master-Detail relationship - Give the field Name" width="482" height="256" /></a><p class="wp-caption-text">Salesforce Master-Detail relationship - Give the field Name</p></div>
<p>for the Master record A, i have used name &#8220;ChildOfA&#8221; and in same way for the Master record B &#8211; i used &#8220;ChildOfB&#8221;.</p>
<p>Untill now, we have created two fields on object C in which one refer to master record A and other will refer master record B as shown in below screen. Now we can create a tab for all the custom objects to add the record. First create record for <strong>A </strong>then <strong>B </strong>and for record <strong>C </strong>screen will look like below snap.</p>
<div id="attachment_2478" class="wp-caption aligncenter" style="width: 492px"><a href="http://shivasoft.in/blog/wp-content/uploads/2011/10/Salesforce-Master-Detail-relationship-Many-to-Many-Relationship.png"><img class="size-full wp-image-2478 " title="Salesforce Master-Detail relationship - Many to Many Relationship" src="http://shivasoft.in/blog/wp-content/uploads/2011/10/Salesforce-Master-Detail-relationship-Many-to-Many-Relationship.png" alt="Salesforce Master-Detail relationship - Many to Many Relationship" width="482" height="228" /></a><p class="wp-caption-text">Salesforce Master-Detail relationship - Many to Many Relationship</p></div>
<p><strong>Few important points (Interview Questions of salesforce ):</strong></p>
<ol>
<li>One Object can have <strong>only two Master-Detail relationships</strong>.</li>
<li>If we <strong>delete record A</strong> (First Master detail relationship is always primary)  – then child record c will be deleted.</li>
<li>If we<strong> delete record B</strong> then in this case also child record C will be deleted.</li>
<li>If we <strong>delete record c</strong> then only C will be deleted , master record will not be deleted.</li>
</ol>
<p>Possibly Related posts:<ol>
<li><a href='http://shivasoft.in/blog/others/tips/difference-in-master-detail-relationship-and-look-up-relationship-salesforce-interview-question/' rel='bookmark' title='Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question'>Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/where-are-the-reports-for-my-custom-object-with-related-objects-in-salesforce/' rel='bookmark' title='Where are the reports for my custom object with related objects in salesforce?'>Where are the reports for my custom object with related objects in salesforce?</a></li>
<li><a href='http://shivasoft.in/blog/salesforce/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n/' rel='bookmark' title='Step by Step Salesforce Tutorial – Creating custom object – 1 of 6'>Step by Step Salesforce Tutorial – Creating custom object – 1 of 6</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=j4rD3r6LTcY:L34BQj4MVEo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=j4rD3r6LTcY:L34BQj4MVEo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=j4rD3r6LTcY:L34BQj4MVEo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=j4rD3r6LTcY:L34BQj4MVEo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/shivasoft/home?a=j4rD3r6LTcY:L34BQj4MVEo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/shivasoft/home?i=j4rD3r6LTcY:L34BQj4MVEo:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/shivasoft/home/~4/j4rD3r6LTcY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://shivasoft.in/blog/salesforce/deep-drive-in-junction-object-create-many-to-many-relationship-in-salesforce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://shivasoft.in/blog/salesforce/deep-drive-in-junction-object-create-many-to-many-relationship-in-salesforce/</feedburner:origLink></item>
	</channel>
</rss>

