tag:blogger.com,1999:blog-41137759265504043972024-03-23T03:13:41.290-07:00All about SFDCSrinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.comBlogger162125tag:blogger.com,1999:blog-4113775926550404397.post-70401802575492061362021-03-01T01:31:00.002-08:002021-03-01T01:32:54.252-08:00Lightning Datatable with fixed horizontal and vertical columns in Salesforce<pre>
.THIS .mydiv {
max-width: 100em !important;
max-height: 20em !important;
overflow: scroll;
position: relative;
}
.THIS table {
position: relative;
border-collapse: collapse;
}
.THIS td {
padding: 0.25em;
}
.THIS th {
padding: 0.25em;
}
.THIS thead th {
position: -webkit-sticky !important; /* for Safari */
position: sticky !important;
top: 0;
z-index: 1;
}
.THIS table thead th:first-child {
position: sticky !important;
left: 0;
z-index: 2;
}
.THIS table tbody th {
position: sticky !important;
left: 0;
background: white;
z-index: 1;
}
</pre>Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com5tag:blogger.com,1999:blog-4113775926550404397.post-91787719953632323652020-08-25T06:43:00.001-07:002020-08-25T06:45:32.647-07:00Salesforce Lightning Message Channel (LMC) communication<p> *** Lightning Message Channel (LMC) ***</p><p>1. Vs Code: Create a folder with the name "messagechannels" (under main\default)</p><p>2. Vs Code: Create meta file with the name "ChannelName.messageChannel-meta.xml" -</p><p> <?xml version="1.0" encoding="UTF-8"?></p><p> <LightningMessageChannel xmlns="http://soap.sforce.com/2006/04/metadata"></p><p> <masterLabel>ChannelName</masterLabel></p><p> <isExposed>true</isExposed></p><p> <description>Message Channel used for the communication.</description></p><p> <lightningMessageFields></p><p> <fieldName>fieldData</fieldName></p><p> <description>Variable used for lms data</description></p><p> </lightningMessageFields></p><p> </LightningMessageChannel></p><p>3. Create a VS Page (lmcVfPage) -</p><p> <script></p><p> let ChannelNameVar = "{!$MessageChannel.ChannelName__c}";</p><p> let subscribedRef;</p><p> </p><p> function publish(){</p><p> const payload = {</p><p> fieldData: { //this name should be the channel field name</p><p> value: 'some data to send'</p><p> }</p><p> };</p><p> sforce.one.publish(ChannelNameVar, payload)</p><p> }</p><p> </p><p> function subscribe(){</p><p> if(!subscribedRef)</p><p> subscribedRef = sforce.one.subscribe(ChannelNameVar, messageHandler, {scope:"APPLICATION"})</p><p> }</p><p> </p><p> function unsubscribe(){</p><p> if(subscribedRef) {</p><p> sforce.one.unsubscribe(subscribedRef);</p><p> subscribedRef = null;</p><p> }</p><p> }</p><p> function messageHandler(message){</p><p> console.log(`message: ${message.fieldData}`);</p><p> }</p><p> </script></p><p>4. Create a Aura Component (lmcAura) -</p><p> UI -</p><p> <lightning:messageChannel type="ChannelName__c" aura:id="ChannelNameId" onMessage="{!c.handleMessage}" scope="APPLICATION"/></p><p><br /></p><p> publish: function (cmp, event, helper) {</p><p> let msg = cmp.get("v.message")</p><p> let message ={</p><p> fieldData:{</p><p> value: msg</p><p> }</p><p> }</p><p> cmp.find("ChannelNameId").publish(message)</p><p> }</p><p> </p><p> handleMessage: function (cmp, message, helper) {</p><p> if (message !=null && message.getParam("fieldData") !=null){</p><p> console.log(message.getParam("fieldData").value);</p><p> }</p><p> }</p><p>5. Create a LWC Component (lmcLwc) -</p><p> import { APPLICATION_SCOPE, publish, createMessageContext, releaseMessageContext, subscribe, unsubscribe } from 'lightning/messageService';</p><p>import ChannelNameVar from "@salesforce/messageChannel/ChannelName__c"</p><p><br /></p><p>LightningElement {</p><p> context = createMessageContext();</p><p> </p><p> publishMessage(){</p><p> const message = {</p><p> fieldData:{</p><p> value: 'Some Value'</p><p> }</p><p> }</p><p> publish(this.context, ChannelNameVar, message)</p><p> }</p><p> subscribeMessage(){</p><p> if (this.subscription){</p><p> return;</p><p> }</p><p> this.subscription = subscribe(this.context, ChannelNameVar, (message)=>{</p><p> this.handleMessage(message)</p><p> }, { scope: APPLICATION_SCOPE})</p><p> }</p><p> unsubscribeMessage(){</p><p> unsubscribe(this.subscription)</p><p> this.subscription = null</p><p> }</p><p><br /></p><p> handleMessage(message){</p><p> console.log(lmsData? message.lmsData.value : 'No Message');</p><p> }</p><p> </p><p> disconnectedCallback() {</p><p> releaseMessageContext(this.context)</p><p> }</p><p>}</p><p>5. Create an App Page and add all vf, aura and lwc components.</p><p> </p>Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com1tag:blogger.com,1999:blog-4113775926550404397.post-3143025560825309152020-07-30T19:37:00.000-07:002020-07-30T19:37:00.239-07:00Delete a record in Aura Datatable<script src="https://gist.github.com/sriniind19/2e4b898822a66e83ec83d6062beca6d9.js"></script>Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-41682461735834699482019-08-21T06:27:00.000-07:002019-08-21T06:27:38.379-07:00styling and showing the json in visualforce page<script src="https://gist.github.com/sriniind19/c6b5f12a4ff1b5d384328d1c2adfc48f.js"></script>Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com21tag:blogger.com,1999:blog-4113775926550404397.post-24868665236346355332018-01-05T01:56:00.004-08:002018-01-05T01:56:25.173-08:00Bot (IBM Watson) with Salesforce Research<div dir="ltr" style="text-align: left;" trbidi="on">
References: <br />
https://trailhead.salesforce.com/projects/surface-data-from-ibm-watson-discovery-in-salesforce/steps/set-up-a-watson-discovery-plan-on-ibm-bluemix<br />https://developer.ibm.com/dwblog/2017/watson-discovery-apex-sdk-salesforce/<br />https://developer.salesforce.com/blogs/developer-relations/2017/03/bot-toolkit-creating-deploying-bots-inside-salesforce.html<br /></div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com20tag:blogger.com,1999:blog-4113775926550404397.post-64134489136627509532017-12-08T05:57:00.001-08:002018-01-30T05:09:07.159-08:00Lightning Notes<div dir="ltr" style="text-align: left;" trbidi="on">
force:appHostable --> Custom Tab<br />
flexipage:availableForAllPageTypes --> Makes your component available for record pages and any other type of page, including a Lightning app’s utility bar.<br />
flexipage:availableForRecordHome --> If your component is designed for record pages only, implement this interface instead of flexipage:availableForAllPageTypes.<br />
force:hasRecordId --> Add the force:hasRecordId interface to a Lightning component to enable the component to be assigned the ID of the current record.<br />
forceCommunity:availableForAllPageTypes --> To appear in the Community Builder, a component must implement the forceCommunity:availableForAllPageTypes interface.<br />
force:lightningQuickAction --> to a Lightning component to enable it to be used as a custom action in Lightning Experience or the Salesforce mobile app.<br />
--------------------------<br />
access = "global" --> To use it outside of the component name space.<br />
-------------------------------<br />
<br />
There are three ways of inserting a style sheet:<br />
<br />
Inline style --> not supported in lightning compnent<br />
Internal style sheet --> style resource<br />
External style sheet --> <ltng:require styles="{!$Resource.***resourceName***}" /><br />
<br />
The element Selector<br />
---------------------<br />
p {<br />
text-align: center;<br />
color: red;<br />
}<br />
<br />
The id Selector<br />
----------------<br />
#para1 {<br />
text-align: center;<br />
color: red;<br />
}<br />
<br />
The class Selector<br />
------------------<br />
.center {<br />
text-align: center;<br />
color: red;<br />
}<br />
<br />
specify that only specific HTML elements should be affected by a class<br />
---------------------------<br />
p.center {<br />
text-align: center;<br />
color: red;<br />
}<br />
<br />
p.large {<br />
font-size: 300%;<br />
}<br />
<br />
<p class="center large">This paragraph will be red, center-aligned, and in a large font-size.</p><br />
<br />
Grouping Selectors<br />
---------------------<br />
h1, h2, p {<br />
text-align: center;<br />
color: red;<br />
}<br />
<br />
CSS Comments<br />
----------------<br />
p {<br />
color: red;<br />
/* This is a single-line comment */<br />
text-align: center;<br />
}<br />
<br />
/* This is<br />
a multi-line<br />
comment */<br />
<br />
<br />
---------------<br />
<br />
Difference between lightning:button & ui:button<br />
-----------<br />
If you go thru the Lightning base components release notes, you will notice that the Base components are more of an extended implementation of the existing UI components.<br />
<br />
here's an extract of the related section<br />
<br />
You can find base Lightning components in the lightning namespace to complement the existing ui namespace components. In instances where there are matching ui and lightning namespace components, we recommend that you use the lightning namespace component. The lightning namespace components are optimized for common use cases. Beyond being equipped with the Lightning Design System styling, they handle accessibility, real-time interaction, and enhanced error messages.<br />
<br />
Over a period, the base components will have more features built into it which can be easily configured / controlled by additional attributes.<br />
<br />
---------------------<br />
JavaScript Basics<br />
=================<br />
<script><br />
var person = {<br />
firstName: "John",<br />
lastName : "Doe",<br />
id : 5566,<br />
fullName : function() {<br />
return this.firstName + " " + this.lastName;<br />
}<br />
};<br />
<br />
document.getElementById("demo").innerHTML = person.fullName();<br />
</script><br />
<br />
var fruits = ["Banana", "Orange", "Apple", "Mango"];<br />
fruits.shift(); // Removes the first element "Banana" from fruits<br />
<br />
var fruits = ["Banana", "Orange", "Apple", "Mango"];<br />
fruits.pop(); // Removes the last element ("Mango") from fruits<br />
<br />
Understanding JavaScript Controllers Versus Helpers In Lightning Components<br />
https://developer.salesforce.com/blogs/developer-relations/2015/06/understanding-javascript-controllers-versus-helpers-lightning-components.html<br />
<br />
https://developer.salesforce.com/blogs/author/rraodv<br />
<br />
<br />
Component Rendering -<br />
https://developer.salesforce.com/blogs/developer-relations/2015/06/understanding-system-events-lightning-components-part-2.html<br />
<br />
Loading External JavaScript And CSS Libraries To Lightning Components -<br />
https://developer.salesforce.com/blogs/developer-relations/2015/05/loading-external-js-css-libraries-lightning-components.html<br />
<br />
Event Propagation -<br />
https://developer.salesforce.com/blogs/developer-relations/2017/08/depth-look-lightning-component-events.html<br />
<br />
-----------------------------------------------------------<br />
Different way of handling server callback -<br />
********************************** <br />
// Create server request<br />
var action = component.get("c.getExpenses");<br />
<br />
// Send server request<br />
$A.enqueueAction(action);<br />
<br />
// ... time passes ...<br />
<br />
// Handle server response<br />
var state = action.response.getState();<br />
if (state === "SUCCESS") {<br />
component.set("v.expenses", action.response.getReturnValue());<br />
}<br />
---------------------------------------------<br />
Map Syntax in Lightning javaScript -<br />
*****************************<br />
<div class="line number4 index3 alt1" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var</code> <code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">parammap = {</code></div>
<div class="line number5 index4 alt2" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"sortField"</code> <code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">: cmp.get(</code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"v.sortField"</code><code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">), </code></div>
<div class="line number6 index5 alt1" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"sortOrder"</code> <code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">: cmp.get(</code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"v.sortOrder"</code><code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">),</code></div>
<div class="line number7 index6 alt2" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"objectName"</code> <code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">: cmp.get(</code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"v.objectName"</code><code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">),</code></div>
<div class="line number8 index7 alt1" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"fieldSetName"</code> <code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">: cmp.get(</code><code class="js string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"v.fieldSetName"</code><code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)</code></div>
<div class="line number9 index8 alt2" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">};</code></div>
<div class="line number9 index8 alt2" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">-----------------------------------</code></div>
<div class="line number9 index8 alt2" style="-webkit-text-stroke-width: 0px; background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; height: auto !important; left: auto !important; letter-spacing: normal; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; orphans: 2; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; top: auto !important; vertical-align: baseline !important; white-space: pre !important; widows: 2; width: auto !important; word-spacing: 0px;">
<code class="js plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code></div>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com1tag:blogger.com,1999:blog-4113775926550404397.post-35066951534656136732017-06-09T03:06:00.001-07:002017-06-09T03:07:09.713-07:00Displaying text in td cell in multiple lines Salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<u><b>TD text value in multiple lines -</b></u><br />
<div>
<b><u><br /></u></b>
<br />
<div>
<pre class="codeBlock" style="background-color: #f8f8f8; font-family: 'Courier New', Courier, mono; font-size: 12px;"><table border="0" cellpadding="8" cellspacing="0" id="ApexClassViewPage:theTemplate:theForm:thePageBlock:j_id70:j_id71:j_id74" rules="cols"><tbody id="ApexClassViewPage:theTemplate:theForm:thePageBlock:j_id70:j_id71:j_id74:tb">
<tr><td colspan="1" id="ApexClassViewPage:theTemplate:theForm:thePageBlock:j_id70:j_id71:j_id74:0:j_id77" style="border-bottom-style: none; border-bottom-width: 1px; border-color: rgb(236, 236, 236); font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top;"><apex:page >
<apex:form>
<table>
<tr><td>
<div id="myDiv"/>
</td></tr>
</table>
<apex:commandButton onclick="myFunction();" value="NextLine" reRender="dummy"/>
<apex:outputPanel id="dummy"/>
</apex:form>
<script>
function myFunction() {
document.getElementById('myDiv').innerHTML='<apex:outputText escape="false" value="{!$Label.sample}"/>';
//$Label.sample -->This is <strong><font color="#FF0000"></font></strong> Test Label111 <br/> second Line
alert('hi');
}
</script>
</apex:page></td></tr>
</tbody></table>
</pre>
<br />
<u><b>Result:</b></u><br />
<img alt="" height="145" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbkAAABlCAIAAABfvQqfAAAKQklEQVR4nO3d228bVR7A8f4X+z5vlvJQ6fcQZVWRp0asZAlRS0gQUVRrg9TGaCMetgUJhYfiLK3TZSFqgQhBXRB1EpC6UkRgnV42KGlTYrQgazfEaXMhdPFCE3sunqQhsw++xI7PZJxQp6b9fjRCzvT4+CQPX8Z2fLJv6r8rHBwcHBzbH/t+d+4qBwcHB8f2x74HvgIODg6Oxj/2PfAVcHBwcDT+sc8BAHihlQDgjVYCgDdaCQDeaCUAeKOVAOCNVgKAN1oJAN5oJQB4o5UA4I1WAoA311YmejSFnoRzJxbUgrE7laOVJ5VqHum6gNqt2/a6YuKwpoVv3s+lKkYuxoJauGKttZwB0Ki8rysTPZWF2qtWui6gVjP9fp+qifVv5eLIiYOaVt7BWs4AaGD3qZX1tNtWujWxvq3MjIX94g+/erTUwVrOAGhwu2tle+/Hfe2iaU3NwXeTtlMeCzv5brC5SdO0/YFXLs3YVdPVPtJtAZlEf0ezT9N8vw/2TaQdRzlVOnak8Ky9KosurVwc6X6q2adt+abae8+HA6JpEugeLK6xegHlrUyOJzOOczO8WcYazgBocLtrpdbWM55Zd5zp/oDW2pcsi0Wi1/dEf3LdcdYzV17xBQfTW6erfaR6AQvRgBZ8L5lZd5y5WLApEJ1zm2pH15UL0YCvO55xHMf+pt+vBS+lC9+pryO2UHis1vBNW72A6ivQ6g7WcgZAo9pdK/3RVOEfC90pxSLZ19oU6P17csF0ma72kcoFpKJ+rftK8SJ0/KTmPz/jMtXOn4Ov25k7M4mPu1vzK7wTC+b/T1B8LN+ZhHoBtBJ42P3K1yurWuk46bH+rqeafZq2P9AV/abqqXXtI5ULuBlWvjOummpHrbST77Xv1/a3PXG0+3SXf7OVmwVMDwa1noR6AbQSeNjd/1YW2Onk+aDvsdJlmfLu245ULqDysm6riql20sr0paDm7592HMdxFmPtm60sXUGrrytdvylaCTxc7nMrM5+f8B2J5t8EyVwNtwaiC1umq32kegFlLxdmxsMHfV3DGZepkn2Pad1Xq7Pq1srW3oTjrGfGe9o0rT22WHi9svXkePGlyba+pHoBtBJ46N3v68r1TOLdo22iaZqv+anukcWq6Wof6baA9HhfR7NP0zRpO5p/w1o9lZ14y+/TtK7hzJb5tj6LPhJLO3byvWBzU/6t7St9B7Xuq3Z+qf2DfYX3wYcXXBdAK4GHHZ9xBABvtBIAvNFKAPBGKwHAG60EAG+N1sp07IhW9XlH1W/57PkWHgAeZbQSALz9ZlsJAHtom1a67Jmm2BJt89ez3U725z+jfScW1NrDZ7sD5fu5OY6zONId2K9pPv/LfeFndnhd6Tancp0AsCvurVRvdKbakaziZDTYdGIkU3EyMxFua+oauVu5n9tctLiLT+VIbRet3G7OsnUCwC65t1K50ZlyR7JU1K91jWz5JGHFyYXYM1rw07R6P7eKkelLHbtopXLOqnUCwG5t93qlYqMz5Y5kys81V5wsvgqp/Cx55d0TPbtopXLOX/FHzQCgUg3v7ZRvdKbckWxn15VVXasYmRn50/1o5fZbtwHADrm20mWjM9WOZOUn714JP9bWP+1UvQrp3jUnHTtSeMExk+gL7Ob1yuo5lesEgF1yv6502zOtekcyp/wtb8XeZfsPHu1PZBzHrWul96x9zR39fX9Wt3LrLmoerXRZJwDsSqP9fiUANCJaCQDeaCUAeKOVAOCNVgKAN1oJAN5oJQB4U7cylUrF4/HhhhePx1Op1B7/yAA8ghStTKVSX3zxRTabzX+5sbFR+qeNjY3Sl9U39n5ANpudmJgglwDqTdHK0dHRfCg3ttUgA7LZ7Ojo6F7+yAA8ghStHB4e/qWMMlINNWB4eHjvf3AAHinqVq6vr/+yrYYaQCsB1JtrK39DaCWAelO3cm1t7V6VUpvu3bvXUANoJYB6U7dydXV1bW1tbW1tdXWqV0T8vQkjfyLRKyJnEmUDCjdK8hXbMuBu8pNXownXGb7/5AWRFz69s80M2zwErQRQb66tzLPtryIiIvLch9O2ba+uTkVE5MxU2QA736zS7S3y9+oVkTNTv2KG7QbQSgD1pm5lPkmbaRORAy99/mMxnYXqrf409X7oDy0irYEXP/h2ZXV1dTU79WYgH1bz9lBI5NCbU/oPQ51SEBpaqpyh8N+FoZBI6NMfVheHQiLP9w29c7RVpPW5t6eyVQ/0zbJdcV/bppUA6s31utK2bdu2c7mbERHpDIVE/L1fZfOl6/1qM3CxW7Z5+6NOaTnx+U+2bdvZKydb5MBLH5x/qUX8kfFsLpezi/eybdsun6HwELnCVJ8s5W/I4ff/Y9rT558WefqjaTs3PxgSCQ3crnwguzQDrQRQb+pW5oosa/K0iPR++a93Dokc/vDfX54WkchkLpe7FXteJDQwb1mWdSv2vMhro8umZVnW/EBIRERajo/8L5ezLKswSWTSNM3S7bKHKNwlNPS9OTcQEml5a9KyrNyN0yJy+kZuNtYhEhqcz1mWlbrYIfLa6IplWVZpBloJoN7UrTRN07Ks8rRZP4+ePCAtx4+/WKzeZEQqhQbmTNM0LSv92csiIt3/WMnPY1mTp4r3Ms3yblqFAfMDncVWFm6YpjlxSkROTVQ/UOfAvGWaZmkGWgmg3lxbWbSZucXB4uuOkRumaaYudogc/+xHs5xhGHcn3ziUH/bk3yaXt05iGDdOFWfYNDfQKdI5uFi8sWAYRqmVWx7IKCrdm1YCqDd1K0s90vXrpbQZma/PPVlopWEYxvSFw9LSOfCdvvJd7JjI4Q9nDKMw5tkLX0+8cUjk0Ntf67qu69ffOCDy+piRMUqtLHsIXb91Md9K43as1Eqj0EpD/0/0sLR0Ds6Y2VTsmMizF2aMCrQSQL2pW6lvuv66iJye0HXdMIyf4ydbil/quj7/z7Odj7eItBx84ey1ed0wjO8+7hQ59NfrP+n6z9f+4hc5HE3q2Wz22wt/bBWRx88l8hOWO3ZxbvbiMZHOgfl8K4/F5rLZrD5+SkROjeu6rs9dO3us8EDnrs3r2Ww2m82WlkgrAdSbupX5GGUymey2GmQArQRQb66tzKhsiVSDDKCVAOpN3cp8g1aK8rfLTzbUAFoJoN7UrSy1aXl5eXl5ubxWpTONM4BWAqg3dStLbXLrVEMNoJUA6s31urL6yW+pXCuVHvgAWgmg3hStjMfjS0tL5Umqjlf+TCMMWFpaisfje/+DA/BIUf8dx8uXL8/Ozpae51Znq3TmwQ6YnZ29fPkyf8cRQL2p/z742NhYJBLpbniRSGRsbGyPf2QAHkHqVgIAytFKAPBGKwHAG60EAG+0EgC80UoA8EYrAcAbrQQAb7QSALzRSgDwRisBwButBABvtBIAvNFKAPBGKwHAG60EAG+0EgC80UoA8EYrAcAbrQQAb7QSALzRSgDwRisBwButBABvtBIAvNFKAPBGKwHAG60EAG+0EgC8/R88EelbjjbgnwAAAABJRU5ErkJgggA=" width="640" /></div>
</div>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com3tag:blogger.com,1999:blog-4113775926550404397.post-84936940654914970602016-02-20T06:41:00.000-08:002016-12-18T01:49:21.434-08:00Spring '16 Important Features<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<ol style="text-align: left;">
<li><div class="MsoListParagraphCxSpFirst" style="text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="color: #0070c0; font-size: 13.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">1.<span style="font-size: 7pt; font-stretch: normal; font-weight: normal;">
</span></span></b><!--[endif]--><b><span style="color: #0070c0; font-size: 13.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">Platform Security Health Check<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle">
<span style="font-size: 13.5pt;">Spring ’16 provides an interesting new security
Health Check feature that enables the current org configuration to be compared
against a Salesforce recommended baseline. Any feature that highlights security
risk or vulnerability is positive addition and should help mitigate against
complacency.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-size: 13.5pt;">2.<span style="font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-size: 13.5pt;">Lightning Experience – Person Account
Compatibility (Beta) enabled<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-size: 13.5pt;">3.<span style="font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-size: 13.5pt;"> List View filters can now be edited on-the-fly
and record detail pages support inline editing. Both features providing
enhancement to the general user experience.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="color: #0070c0; font-size: 13.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">4.<span style="font-size: 7pt; font-stretch: normal; font-weight: normal;">
</span></span></b><!--[endif]--><b><span style="color: #0070c0; font-size: 13.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">Lightning Experience – Detect User
Experience –<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle">
<span style="font-size: 13.5pt;">Support is now provided for Apex script to reliably
detect the current user experience, i.e. Salesforce1, Lightning Experience,
Salesforce Classic. New Apex methods are available (User.UITheme and
UserInfo.getUiTheme()) that provide a standardised approach that replaces the
previous use of the sforce.one JavaScript global (and its unsupported approach
caveat).<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="color: #0070c0; font-size: 13.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">5.<span style="font-size: 7pt; font-stretch: normal; font-weight: normal;">
</span></span></b><!--[endif]--><b><span style="color: #0070c0; font-size: 13.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">Apex Unit Tests<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle">
<span style="font-size: 13.5pt;">New developers writing Apex Unit tests have
suffered for years with the platform constraint that setup and non-setup
objects can’t be created in the same Apex transaction (Mixed DML Operation
Error). Typically this is problematic where User records are created in the
test context alongside test records such as Accounts etc. With Spring ’16 it is
now possible to create the setup object via @future method. A second
improvement in context is the ability to change record creation date field
values using the System.Test.setCreatedDate method. Where record processing
logic is temporal in nature this ability will be helpful in writing tests that
correctly validate the code logic.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-size: 13.5pt;">6.<span style="font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-size: 13.5pt;">Enterprise Edition customers now get
access to 25 developer sandboxes instead of 1<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
</li>
</ol>
</div>Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com15tag:blogger.com,1999:blog-4113775926550404397.post-90961475924297979762016-02-11T05:20:00.000-08:002016-02-11T05:20:43.830-08:00Moving pick-list values up and down (reordering) in javaScript (Works only chrome, not working for Firefox and IE)<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-tab-span" style="white-space: pre;"> </span><!-- To switch the picklist values --><br />
function arraymove(direction) {<br />
var optionslist = document.getElementById('select-2').options;<br />
var selLst = [];<br />
var unselLst = [];<br />
var combLstVals = [];<br />
var combLstLabels = [];<br />
var combLstSel = [];<br />
var selStartIndex;<br />
var count = 0;<br />
for(i=0;i<optionslist.length;i++) {<br />
if(optionslist[i].selected) {<br />
if(count == 0)<br />
selStartIndex = i;<br />
count++;<br />
selLst.push(optionslist[i]);<br />
}<br />
else {<br />
unselLst.push(optionslist[i]);<br />
}<br />
}<br />
var ovelAllLength = selStartIndex + selLst.length;<br />
var isApply = false;<br />
//Down Arrow Logic<br />
if(direction == 'down') {<br />
if(selStartIndex != null && (ovelAllLength < optionslist.length || selStartIndex == 0)) {<br />
isApply = true;<br />
if(selStartIndex != 0) {<br />
for(i=0;i<unselLst.length;i++) {<br />
if(i == selStartIndex) {<br />
combLstVals.push(unselLst[i].value);<br />
combLstLabels.push(unselLst[i].label);<br />
combLstSel.push(false);<br />
for(j=0;j<selLst.length;j++) {<br />
combLstVals.push(selLst[j].value);<br />
combLstLabels.push(selLst[j].label); <br />
combLstSel.push(true); <br />
}<br />
}<br />
else {<br />
combLstVals.push(unselLst[i].value);<br />
combLstLabels.push(unselLst[i].label);<br />
combLstSel.push(false);<br />
}<br />
}<br />
} <br />
else {<br />
combLstVals.push(unselLst[0].value);<br />
combLstLabels.push(unselLst[0].label);<br />
combLstSel.push(false);<br />
for(j=0;j<selLst.length;j++) {<br />
combLstVals.push(selLst[j].value);<br />
combLstLabels.push(selLst[j].label); <br />
combLstSel.push(true); <br />
}<br />
for(i=1;i<unselLst.length;i++) {<br />
combLstVals.push(unselLst[i].value);<br />
combLstLabels.push(unselLst[i].label);<br />
combLstSel.push(false);<br />
}<br />
}<br />
} <br />
}<br />
//Up Arrow Logic<br />
else if(direction == 'up') {<br />
if(selStartIndex != 0 && selStartIndex != null) {<br />
isApply = true;<br />
if(selStartIndex == 1) {<br />
for(j=0;j<selLst.length;j++) {<br />
combLstVals.push(selLst[j].value);<br />
combLstLabels.push(selLst[j].label); <br />
combLstSel.push(true); <br />
}<br />
for(i=0;i<unselLst.length;i++) {<br />
combLstVals.push(unselLst[i].value);<br />
combLstLabels.push(unselLst[i].label);<br />
combLstSel.push(false);<br />
}<br />
}<br />
else {<br />
for(i=0;i<unselLst.length;i++) {<br />
if(i == selStartIndex - 1) {<br />
for(j=0;j<selLst.length;j++) {<br />
combLstVals.push(selLst[j].value);<br />
combLstLabels.push(selLst[j].label); <br />
combLstSel.push(true); <br />
}<br />
combLstVals.push(unselLst[i].value);<br />
combLstLabels.push(unselLst[i].label);<br />
combLstSel.push(false); <br />
}<br />
else {<br />
combLstVals.push(unselLst[i].value);<br />
combLstLabels.push(unselLst[i].label);<br />
combLstSel.push(false);<br />
}<br />
}<br />
}<br />
}<br />
} <br />
if(isApply) {<br />
for(i=0;i<optionslist.length;i++) {<br />
optionslist[i].value = combLstVals[i];<br />
optionslist[i].label = combLstLabels[i];<br />
optionslist[i].selected = combLstSel[i];<br />
}<br />
}<br />
}</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com1tag:blogger.com,1999:blog-4113775926550404397.post-76189636240957071712016-02-04T09:40:00.000-08:002016-02-04T09:40:19.595-08:00Multiplication pattern with Apex<div dir="ltr" style="text-align: left;" trbidi="on">
<u><b>Multiplication Pattern -</b></u><div>
<b><u><br /></u></b><div>
<pre class="codeBlock" style="background-color: #f8f8f8; font-family: 'Courier New', Courier, mono; font-size: 12px;"><table border="0" cellpadding="8" cellspacing="0" id="ApexClassViewPage:theTemplate:theForm:thePageBlock:j_id70:j_id71:j_id74" rules="cols"><tbody id="ApexClassViewPage:theTemplate:theForm:thePageBlock:j_id70:j_id71:j_id74:tb">
<tr><td colspan="1" id="ApexClassViewPage:theTemplate:theForm:thePageBlock:j_id70:j_id71:j_id74:0:j_id77" style="border-bottom-style: none; border-bottom-width: 1px; border-color: rgb(236, 236, 236); font-family: Arial, Helvetica, sans-serif; margin: 0px; vertical-align: top;">/*
10*2 =20
20*2 =40
40*2 =80
80*2 =160
160*2 =320
*/
public class Apptitude {
public static void multiplicationPattern1(Integer num) {
Integer n = num;
for(Integer i=0;i<n;i++) {
system.debug(Integer.valueOf((math.pow(2, i)*10))+'*2 ='+Integer.valueOf((math.pow(2, i)*20))+'\n');
}
}
}</td></tr>
</tbody></table>
</pre>
<br /></div>
</div>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com9tag:blogger.com,1999:blog-4113775926550404397.post-86132394068697572922015-07-04T11:13:00.000-07:002015-07-04T11:13:01.974-07:00Summer 15 Release Notes<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h2 style="text-align: left;">
Summer 15 Release Notes </h2>
<div class="MsoTitle">
<o:p></o:p></div>
</div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->1.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->'Setup Assistant' in 'Setup' menu for the newly
activated organizations which provides helpful videos and documentation for the
basic configurations for the administrators.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->2.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Data Loader is available for Mac.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->3.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Login Access Policy changed , (To login as any
user by clicking on ‘Login’ button/link)–<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->a.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Previously, Salesforce had to be contacted to
enable the <b>Administrator can Login as
any user</b> Setting.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->b.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Starting from Summer ’15, this setting is
enabled by default.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->c.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Permission needed to login as any user includes –<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>i.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The “Modify All Data” permission enabled for administrators, and <o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>ii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The “View Setup and Configuration” permission
enabled for delegated administrators. <o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->4.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Edit Feed Posts and Comments –<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->a.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->SF introduces option to edit posts and comments.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->b.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The Chatter Settings option <b>Allow Users to edit posts and comments</b> is enabled by default for
all the organizations.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->c.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The user permission <b>Edit My Own Posts:</b><o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>i.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Is available by default for the users with standard
profiles.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>ii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Can be enabled in the profile for the users with
custom profiles.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>iii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Is not available to Chatter Free, Chatter
External, and Customer Portal profiles.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->d.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The user permission <b>Edit Posts on Records I Own </b>can be enabled in the profile for users
with standard or custom profiles.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->e.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Chatter Moderators, community moderators, and
users with “Modify All Data” permission can always edit all posts and comments.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->5.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Share any file with a library –<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->a.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The ability to share files with libraries is
turned off by default.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->b.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Can be enabled by navigating to Setup >
Customize > Salesforce Files > Settings > Salesforce CRM Content > Files
user interface allows sharing files with library.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->6.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Salesforce Files Sync software can be installed
so that we sync files from local system to a folder in salesforce server.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->7.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Previous all the custom object records could be
added to chatter groups but now sf introduced an option called “Allow in
Chatter Groups” permission on the object edit page.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->8.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Customizing Actions in the Salesforce1 Action
Bar –<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->a.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Developers can choose to override the predefined
actions and specify separate set of actions to appear in Salesforce1 and the
Web Interface.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->b.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->To support this new feature:<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>i.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Actions category in palette has been removed to <b>Quick Actions.</b><o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>ii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->A new category, <b>Salesforce1 Actions</b>, has been added. <o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>iii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->The <b>Actions
in the Publisher </b>section in the page layout has
been renamed to <b>Quick Actions in the
Publisher.</b><o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>iv.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->A new section named <b>Actions in the Salesforce1 Action Bar</b> has been added to the page
layout.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.25pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->9.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Enhancements to Macros –<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 74.25pt; mso-add-space: auto; mso-list: l0 level2 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->a.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Using macros, Support Agents can now:<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>i.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Run bulk macros on multiple records at the same
time.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>ii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Search and attach articles to macros.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>iii.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Post to social networks.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>iv.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Replace field values in a case.<o:p></o:p></div>
<br />
<div class="MsoListParagraphCxSpLast" style="margin-left: 110.25pt; mso-add-space: auto; mso-list: l0 level3 lfo1; mso-text-indent-alt: -9.0pt; text-indent: -110.25pt;">
<!--[if !supportLists]--><span style="font-size: 7pt; font-stretch: normal;">
</span>v.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Insert field values into a case.<o:p></o:p></div>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com1tag:blogger.com,1999:blog-4113775926550404397.post-678672530694938862013-11-30T03:08:00.003-08:002013-12-21T22:47:16.426-08:00Roll Up Summary Fields using Trigger After events<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Roll Up Summary Fields using Trigger After events :</b><br />
<br />
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;">trigger My_MonthsRollUp_US on THD_Sales__c (after insert, after update, after delete, after undelete) {
Map<Id,Account> updateAccounts = new Map<Id,Account>();
Set<Id> updateAccountIds = new Set<Id>();
// If we are inserting, updating, or undeleting, use the new ID values
if(Trigger.isInsert || Trigger.isUpdate || Trigger.isUndelete) {
if(trigger.new != null)
for(THD_Sales__c thdsales:Trigger.new)
if(thdsales.SFDC_Account_ID__c != '0017000000ZWk80AAD')
updateAccounts.put(thdsales.SFDC_Account_ID__c,null);
}
// If we are updating, some accounts might change, so include that as well as deletes
if(Trigger.isUpdate || Trigger.isDelete) {
if(trigger.old != null)
for(THD_Sales__c thdsales:Trigger.old)
if(thdsales.SFDC_Account_ID__c != '0017000000ZWk80AAD')
updateAccounts.put(thdsales.SFDC_Account_ID__c,null);
}
// Do not create a record for null field
updateAccounts.remove(null);
// Create in-memory copies for all accounts that will be affected
for(Id accountId:updateAccounts.keyset())
updateAccounts.put(accountId,new Account(id=accountId,
Total_My_SO_Sales_January__c=0, Total_My_SO_Sales_February__c=0,Total_My_SO_Sales_March__c=0,
Total_My_SO_Sales_April__c=0,Total_My_SO_Sales_May__c=0,Total_My_SO_Sales_June__c=0,
Total_My_SO_Sales_July__c=0,Total_My_SO_Sales_August__c=0,Total_My_SO_Sales_September__c=0,
Total_My_SO_Sales_October__c=0,Total_My_SO_Sales_November__c=0,Total_My_SO_Sales_December__c=0,
Total_Cash_Carry_Sales_January__c=0, Total_Cash_Carry_Sales_February__c=0,Total_Cash_Carry_Sales_March__c=0,
Total_Cash_Carry_Sales_April__c=0,Total_Cash_Carry_Sales_May__c=0,Total_Cash_Carry_Sales_June__c=0,
Total_Cash_Carry_Sales_July__c=0,Total_Cash_Carry_Sales_August__c=0,Total_Cash_Carry_Sales_September__c=0,
Total_Cash_Carry_Sales_October__c=0,Total_Cash_Carry_Sales_November__c=0,Total_Cash_Carry_Sales_December__c=0
));
// Run an optimized query that looks for all accounts that meet the if/then criteria
map< string, list< schema.sobjectfield > > fieldMap =
new map< string, list< schema.sobjectfield > > {
'Special Order' =>
new list< schema.sobjectfield > {
null,
Account.Total_My_SO_Sales_January__c,
Account.Total_My_SO_Sales_February__c,
Account.Total_My_SO_Sales_March__c,
Account.Total_My_SO_Sales_April__c,
Account.Total_My_SO_Sales_May__c,
Account.Total_My_SO_Sales_June__c,
Account.Total_My_SO_Sales_July__c,
Account.Total_My_SO_Sales_August__c,
Account.Total_My_SO_Sales_September__c,
Account.Total_My_SO_Sales_October__c,
Account.Total_My_SO_Sales_November__c,
Account.Total_My_SO_Sales_December__c
},
'Cash & Carry' =>
new list< schema.sobjectfield > {
null,
Account.Total_Cash_Carry_Sales_January__c,
Account.Total_Cash_Carry_Sales_February__c,
Account.Total_Cash_Carry_Sales_March__c,
Account.Total_Cash_Carry_Sales_April__c,
Account.Total_Cash_Carry_Sales_May__c,
Account.Total_Cash_Carry_Sales_June__c,
Account.Total_Cash_Carry_Sales_July__c,
Account.Total_Cash_Carry_Sales_August__c,
Account.Total_Cash_Carry_Sales_September__c,
Account.Total_Cash_Carry_Sales_October__c,
Account.Total_Cash_Carry_Sales_November__c,
Account.Total_Cash_Carry_Sales_December__c
}
};
for(THD_Sales__c thdsales : [SELECT Id, Month_Year__c, POS_Order_Type__c, Amount__c, SFDC_Account_ID__c
FROM THD_Sales__c WHERE SFDC_Account_ID__c IN :updateAccounts.keySet( ) AND
POS_ORDER_TYPE__C IN ('Special Order','Cash & Carry') AND Month_Year__c != null]){
updateAccounts.get( thdsales.sfdc_account_id__c ).put(fieldmap.get( thdsales.pos_order_type__c )[thdsales.month_year__c.month()],
( Decimal )( updateAccounts.get( thdsales.sfdc_account_id__c ).get( fieldmap.get( thdsales.pos_order_type__c )[thdsales.month_year__c.month()]))+thdsales.Amount__c );
}
// Update all the accounts with new values.
Database.update(updateAccounts.values());
}
</pre>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com1tag:blogger.com,1999:blog-4113775926550404397.post-44423218686180178142013-06-16T04:29:00.001-07:002013-06-16T04:29:14.817-07:00Map usage in Apex<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Map usage in APEX:</b><br />
<br />
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;">public with sharing class MapUsage {
public static void mapUse(){
Map<Integer, String> mp = new Map<Integer, String>();
// kEy is Integer
// value is String
mp.put(1221,'Mahi');
//mp.put(1226,'Shyam');
mp.put(1211,'Rajesh');
mp.put(1255,'Kiran');
System.debug('---------------Elements in the map are ------------>'+mp);
System.debug('---------------Size of the map is-------4---------->'+mp.size());
System.debug('------------Keys in the map are ----------->'+mp.keyset());
System.debug('------------Values in the map are ----------->'+mp.values());
System.debug('------------------'+mp.get(1211));
mp.remove(1226);
mp.put(1211,'Charan');
mp.put(1248,'Pavan');
mp.put(1222,'Kiran');
System.debug('---------------Elements in the map are ------------>'+mp);
System.debug('---------------Size of the map is-------5---------->'+mp.size());
for(Integer i : mp.keyset()){
System.debug('-----Key--------'+i);
System.debug('-----value---------'+mp.get(i));
}
for(String s: mp.values()){
System.debug('----------------'+s);
}
}
}
</pre>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com3tag:blogger.com,1999:blog-4113775926550404397.post-56453955363964400932013-06-16T04:20:00.001-07:002013-06-16T04:22:41.378-07:00Set usage in Apex<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Set usage in APEX:</b><br />
<br />
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;">public with sharing class SetUsage {
public void setUse(){
Set<Integer> st = new Set<Integer>();
st.add(1234);
st.add(1248);
st.add(1225);
st.add(1252);
System.debug('----------------Elementa in the set are --------------'+st);
System.debug('----------------Size of Elementa in the set are ------4--------'+st.size());
st.remove(1252);
System.debug('----------------Size of Elementa after removing an element in the set are ------3--------'+st.size());
st.add(1248);
st.add(1252);
st.add(1221);
System.debug('----------------Size of Elementa in the set after adding duplciates are ------5--------'+st.size());
Set<Integer> newst = st.clone();
System.debug('----------------Size of Elementa in the new set are -------5-------'+newst.size());
st.clear();
System.debug('-----------------NEw set is EMpty or not--------false--------'+newst.isEmpty());
for(Integer i: newst){
System.debug('----------------->'+i);
}
}
}</pre>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com1tag:blogger.com,1999:blog-4113775926550404397.post-78400561376822374632013-06-16T04:07:00.002-07:002013-06-16T04:22:53.500-07:00List usage in Apex<div dir="ltr" style="text-align: left;" trbidi="on">
<b>List Usage in APEX:</b><br />
<br />
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;">public with sharing class ListUsage {
public void listUse(){
// Initialising a list
List<String> lst = new List<String>();
// Adding elemenst into list
lst.add('ABC');
lst.add('DEF');
lst.add('GHI');
lst.add('JKL');
System.debug('---------Elements in the list are-------------->'+lst);
System.debug('----------Size of the Elements are-----4-------->'+lst.size());
System.debug('-----------Element in 2nd index--------GHI-------->'+lst[2]);
lst.remove(1);
System.debug('---------Elements in the list after removing are-------------->'+lst);
System.debug('----------Size of the Elements after removing are----3--------->'+lst.size());
lst.add('MNO');
lst.add('GHI');
lst.add('DEF');
lst.add('1248');
System.debug('---------Elements in the list after adding duplicate values are-------------->'+lst);
System.debug('----------Size of the Elements after adding duplicate values are--------7----->'+lst.size());
List<String> newlst = lst.clone();
System.debug('---------Elements in the new list are-------------->'+newlst);
System.debug('----------Size of the Elements in new list are-------7------>'+newlst.size());
lst.clear();// removes all the elements in the list
System.debug('-----------------List is Empty or not-------true----------->'+lst.isEmpty());
System.debug('-----------------New List is Empty or not-------false----------->'+newlst.isEmpty());
//Indexing for loop
for(integer i=0; i<newlst.size(); i++){
System.debug('-----Index------->'+newlst[i]);
}
//For Each Loop
for(String s: newlst){
System.debug('-----For Each---------->'+s);
}
}
}</pre>
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com4tag:blogger.com,1999:blog-4113775926550404397.post-36255324159998928002013-06-01T10:54:00.002-07:002016-12-18T01:46:17.859-08:00Using Hierarchy Custom Settings in Salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
1. Create a hierarchy custom setting like below<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiZC1cc7Ry70muIxuC8be2X7qhl144u3NbSelvG1RkI1N-m5eLld5P7IqiHtn3da2kHC8vfvCRGLDduGC5bAVqjtAum9XrEXWEoQ461r6GrugoH2Sp4HS91JKmh8I9aSWSg6_s9vvAwCI/s1600/p1-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="144" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiZC1cc7Ry70muIxuC8be2X7qhl144u3NbSelvG1RkI1N-m5eLld5P7IqiHtn3da2kHC8vfvCRGLDduGC5bAVqjtAum9XrEXWEoQ461r6GrugoH2Sp4HS91JKmh8I9aSWSg6_s9vvAwCI/s400/p1-1.jpg" width="400"></a></div>
<br />
- As per the above screen shot create a custom field of data type check box<br />
<u>Note</u>: App Setup > Develop > Custom Settings (To open custom settings)<br />
<br />
2. Click on Manage button<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw4vE6dJ3k14GJAyU4Nnq0RMprVnnCfkeBj9aLGz5RWPt8clX3bcsz5szaWB7GwsVxmaoG_RClFlxdKfW9T0Tg3pM6Qlff3qIrwrs2mH_ZKy8nDaRzYnHOyoey7h852eFJCG7SwQ5ccSg/s1600/p1-2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw4vE6dJ3k14GJAyU4Nnq0RMprVnnCfkeBj9aLGz5RWPt8clX3bcsz5szaWB7GwsVxmaoG_RClFlxdKfW9T0Tg3pM6Qlff3qIrwrs2mH_ZKy8nDaRzYnHOyoey7h852eFJCG7SwQ5ccSg/s400/p1-2.jpg" width="400"></a></div>
<br />
- As per the above screen shot set the OWD value for isBypassed as 'False'<br />
- Add two users by clicking on New button, set isBypassed as 'True' for one user and 'False' for another user<br />
<br />
3. Create a page called 'Change Owner'<br />
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;"><apex:page tabStyle="Case" standardController="Case">
<apex:form >
<apex:sectionHeader title="Change Case Owner"/>
<p>This screen allows you to transfer cases from one user or queue to another. When you transfer ownership, the new owner will own:</p>
<ul><li>all open activities (tasks and events) for this case that are assigned to the current owner</li></ul>
<p>Note that completed activities will not be transferred. Open activities will not be transferred when assigning this case to a queue.</p>
<apex:pageBlock mode="Edit">
<apex:pageBlockButtons location="bottom">
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel"/>
</apex:pageBlockButtons>
<br/><apex:pageBlockSection title="Select New Owner" collapsible="false" columns="3">
<apex:pageBlockSectionItem >
<apex:outputLabel value="Owner"></apex:outputLabel>
<apex:inputField value="{!Case.ownerId}"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page></pre>
<br />
- Design a visualforce page from the above code<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPRfn8CqaDUee3Q2qNiupYw64KuxdPYvmh59efKqzxoWIbHg5HZ0tu_g8BT3cK-ldaMhp_YsLQ-VQoVd77SmABNRqmw4A-GkZUX1mZmXeLhg5bpi3j0yhvzCjGjWAv1nKE-LELyseJWk/s1600/p1-3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="141" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPRfn8CqaDUee3Q2qNiupYw64KuxdPYvmh59efKqzxoWIbHg5HZ0tu_g8BT3cK-ldaMhp_YsLQ-VQoVd77SmABNRqmw4A-GkZUX1mZmXeLhg5bpi3j0yhvzCjGjWAv1nKE-LELyseJWk/s400/p1-3.jpg" width="400"></a></div>
<br />
4. Create custom button for the Case Object like below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2UXYE51lI_k7mY365aeqf8xNCiqRa6qX38ph3NnOV7PP3jPccsbTWtzLlyAIq9A6rtFPL7KI3GV-QlMQAguIoK0LY2aucMYHqSlwTHRoo6ZrtU3tdMbvP1BgfSV1wzI7H-W9ADXujrAI/s1600/p1-4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="155" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2UXYE51lI_k7mY365aeqf8xNCiqRa6qX38ph3NnOV7PP3jPccsbTWtzLlyAIq9A6rtFPL7KI3GV-QlMQAguIoK0LY2aucMYHqSlwTHRoo6ZrtU3tdMbvP1BgfSV1wzI7H-W9ADXujrAI/s400/p1-4.jpg" width="400"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;">if ({!$Setup.Disable_Change_Owner__c.isBypassed__c}) {
window.location = "/apex/changeowner?id={!Case.Id}";
}
else {
alert("You don't have the permission");
}</pre>
<pre style="background-color: #eeeeee; border: 1px dotted rgb(170, 170, 170); color: #274e13; font-family: monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; margin: 0px 10px 10px; orphans: 2; outline: 0px none; overflow-x: scroll; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;"></pre>
<br />
- Use the above script for OnClick JavaScript<br />
- Add the above custom button 'Change Owner' to Case Page Layout.<br />
- "{!$Setup.Disable_Change_Owner__c.isBypassed__c}" is the way to refer the hierarchy custom setting in JavaScript.<br />
- According to the above button one user can access the page and navigate to the 'Case Owner' page<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHSPa_OkuaJq2aOh3MczkaQNdOd40f68i2DXcfMx46A_RX3WUBglhIPKPja3iTeFhlmPUc3r3lMtcJJf6BTvx6SXsHFB9THEk9hjEd1ME-GWp8fanr0Bf2oHYDhw0CoC9Aozaej47eqc4/s1600/p1-5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="118" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHSPa_OkuaJq2aOh3MczkaQNdOd40f68i2DXcfMx46A_RX3WUBglhIPKPja3iTeFhlmPUc3r3lMtcJJf6BTvx6SXsHFB9THEk9hjEd1ME-GWp8fanr0Bf2oHYDhw0CoC9Aozaej47eqc4/s400/p1-5.jpg" width="400"></a></div>
<br />
- Another user is not able to access the page, it will throw JavaScript alert<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNap_6TL0lu26pfERnOhEyP7c8qiBo6IPj-O6Duil61nGkO0Sh-GKPWFqkYAMuoho38e6s963nAuX-I8saPKJwTDzTRj_KxCmJdS_v5I21nLy5XH2W-QwUBy_fkz6VLm-kAZHCxHyjc_Y/s1600/p1-6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="151" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNap_6TL0lu26pfERnOhEyP7c8qiBo6IPj-O6Duil61nGkO0Sh-GKPWFqkYAMuoho38e6s963nAuX-I8saPKJwTDzTRj_KxCmJdS_v5I21nLy5XH2W-QwUBy_fkz6VLm-kAZHCxHyjc_Y/s400/p1-6.jpg" width="400"></a></div>
<br />
<u><br /></u>
<u>Note:</u> Above scenario helps to create custom change owner functionality for the case record<br />
<br />
***<br />
We can create multiple fields for the hierarchy custom settings and we can assign different values according to the business requirement.<br />
***<br />
<br />
<br />
<br /></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- SF_OldBlog_InPostsNPages -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9025028163732500"
data-ad-slot="5439997674"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-77405528443416016602013-04-15T11:34:00.001-07:002016-12-18T01:44:45.905-08:00Change Case Owner VF Page<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<apex:page tabStyle="Case" standardController="Case" extensions="ChangeOwner"><br />
<apex:form ><br />
<apex:sectionHeader title="Change Case Owner"/><br />
<p>This screen allows you to transfer cases from one user or queue to another. When you transfer ownership, the new owner will own:</p><br />
<ul><li>all open activities (tasks and events) for this case that are assigned to the current owner</li></ul><br />
<p>Note that completed activities will not be transferred. Open activities will not be transferred when assigning this case to a queue.</p><br />
<apex:pageBlock mode="Edit"><br />
<apex:pageBlockButtons location="bottom"><br />
<apex:commandButton value="Save" action="{!save}"/><br />
<apex:commandButton value="Cancel"/><br />
</apex:pageBlockButtons><br />
<br/><apex:pageBlockSection title="Select New Owner" collapsible="false" columns="3"><br />
<apex:pageBlockSectionItem ><br />
<apex:outputLabel value="Owner"></apex:outputLabel><br />
<apex:inputField value="{!Case.ownerId}"/><br />
</apex:pageBlockSectionItem><br />
</apex:pageBlockSection><br />
</apex:pageBlock><br />
</apex:form><br />
</apex:page><br />
<br />
<br />
public class ChangeOwner {<br />
<br />
public ChangeOwner(ApexPages.StandardController controller) {<br />
<br />
} <br />
<br />
}<br />
<br />
</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-36388834599179592062013-03-02T10:39:00.000-08:002013-03-02T10:39:37.667-08:00Products<div dir="ltr" style="text-align: left;" trbidi="on">
* contains standard price book and we can create multiple custom price books.<br />
* without standard price book, it is not possible to create custom price book.<br />
* <b>Price Book:</b> Same product can have multiple prices based on the different locations. Example take laptops which are cheap in US but INIDA they have more cost like that.<br />
* Which is the child object for the opportunity.<br />
* <br />
<br /></div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-3275400526319295662013-03-02T10:22:00.004-08:002013-03-02T10:22:43.039-08:00Lead<div dir="ltr" style="text-align: left;" trbidi="on">
* After converting the lead it is not possible to see the lead through user interface.<br />
* While running the reports we can see the converted leads.<br />
* </div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-46453484858236397882013-02-16T23:55:00.002-08:002013-02-16T23:55:40.708-08:00Update a record on which we are writing the trigger<div dir="ltr" style="text-align: left;" trbidi="on">
Use before insert or before update if you need to update or insert the record on which you are writing the trigger.<br />
<br />
Trigger populate_userlookup on Book__c (before insert, before update) {<br />
for(Book__c b : Trigger.new) {<br />
b.buyer__c = b.ownerId; <br />
} <br />
}<br />
<br />
Note: No need to use DML statements like insert or update in case of before triggers.</div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-72713480957618451102013-02-16T04:40:00.003-08:002016-12-18T01:43:03.694-08:00Upserting data from Cast Iron to Salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTqWD09yolF8G2ofa-GTjox4O6H29Kh4fQi01gHvJIlJQgS13LyxSAy7TXbcD83VqrLU0gnvb9gi5i4q-vnAN4_aNHsFA5_K9if3RFnyLmaS5z5Togo2Nw4-RcDEkl6oKJHE2OUwb1G6g/s1600/ConfigEP.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJqdw05YlPc9T-fyG4pJPs0RUJEIqJPIw4A6M5BNxs-Ia5kGc0ZofZyCrz6UJIjJHR1FCZcigQoqsFlbj37zhjdjnOQ3Zdx7JSdHOPBiK78wNdrF2ZJmmqsFvihYNeHMipUhge1fWBjJQ/s1600/CISFDC.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJqdw05YlPc9T-fyG4pJPs0RUJEIqJPIw4A6M5BNxs-Ia5kGc0ZofZyCrz6UJIjJHR1FCZcigQoqsFlbj37zhjdjnOQ3Zdx7JSdHOPBiK78wNdrF2ZJmmqsFvihYNeHMipUhge1fWBjJQ/s1600/CISFDC.bmp"></a></div>
<br />
1. Create an End Point to salesforce.com<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt_nzvZACDPviOM0UdDVYE9r5b0ERa2_4GjhCUwBooBalP9NvqKoKFajQvgqVxralQluFJ5Eoqih9waXwFbJmNrRsEfaJD0Jg3VwIQAmoy9yJeSd34RGF74H_QRqfcesmQkOUf1ufG9ts/s1600/SFDCEP.bmp" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt_nzvZACDPviOM0UdDVYE9r5b0ERa2_4GjhCUwBooBalP9NvqKoKFajQvgqVxralQluFJ5Eoqih9waXwFbJmNrRsEfaJD0Jg3VwIQAmoy9yJeSd34RGF74H_QRqfcesmQkOUf1ufG9ts/s320/SFDCEP.bmp" width="256"></a><br />
Click on Projects Tab>Right click on Endpoints>Create>Salesforce.com as shown above<br />
<br />
<br />
2.Configure the Endpoint like below<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTqWD09yolF8G2ofa-GTjox4O6H29Kh4fQi01gHvJIlJQgS13LyxSAy7TXbcD83VqrLU0gnvb9gi5i4q-vnAN4_aNHsFA5_K9if3RFnyLmaS5z5Togo2Nw4-RcDEkl6oKJHE2OUwb1G6g/s1600/ConfigEP.bmp" style="margin-left: auto; margin-right: auto;"><img border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTqWD09yolF8G2ofa-GTjox4O6H29Kh4fQi01gHvJIlJQgS13LyxSAy7TXbcD83VqrLU0gnvb9gi5i4q-vnAN4_aNHsFA5_K9if3RFnyLmaS5z5Togo2Nw4-RcDEkl6oKJHE2OUwb1G6g/s400/ConfigEP.bmp" width="400"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Give Salesforce Username> Give Password along with Security Token>Select Login Normally>Click on Test Connetion </td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvv7_jWKJdvkjw3IHTWAZaae3ul0aa_aa6mFfXfeb9i4oOLVt9AD1DB_9g2GZto8qL9WCvGfavPkUY-Npbz78fXfUQ5SId_Y5x_igBfXFVewN2fIgH2pL1KOJmC-ZdFpfBMh4pwoddvv8/s1600/sfconsfdcorg.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="106" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvv7_jWKJdvkjw3IHTWAZaae3ul0aa_aa6mFfXfeb9i4oOLVt9AD1DB_9g2GZto8qL9WCvGfavPkUY-Npbz78fXfUQ5SId_Y5x_igBfXFVewN2fIgH2pL1KOJmC-ZdFpfBMh4pwoddvv8/s400/sfconsfdcorg.bmp" width="400"></a></div>
<br />
It will display like below:<br />
<br />
3. Select upsert activity from saleforce<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEwe7EDAvbLVB63TxFB3DKydCFdk5x-AJ4vtvaJLZhHM8hfbKRIm5o5wFAzczldePmvM8XFu2AEZL1qVgJLY46Jt64bePhx9LPDNTNRX2KtYXcDUSyyQn7wkPufiGYghSJu68iAa5imY0/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEwe7EDAvbLVB63TxFB3DKydCFdk5x-AJ4vtvaJLZhHM8hfbKRIm5o5wFAzczldePmvM8XFu2AEZL1qVgJLY46Jt64bePhx9LPDNTNRX2KtYXcDUSyyQn7wkPufiGYghSJu68iAa5imY0/s400/1.jpg" width="163"></a></div>
<br />
Configure the activity like below<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDvnqHzpOMSHBwyc-wGfm4RsnHyEJDnzA117-iqQZ55LslS_Mq0pmZi2sT46_xatsU4GD6mEfZtoALI_jAJ3_atTZmEOo0xQS-6qFDfWCzZ8spXwGQZYcASvg3oZOvLaBckHCeZQBztPk/s1600/2.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<br />
Pick appropriate end point as you already created<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkKI1g_ZDP15qWqx2EqGjeMwjqA_vmolZqPz-LFDcIm741tGtBNke32YNKzefWtNFv3Uw6QQKZqv7-LCYXRkCYWl78kr6dv8dO_M6TSVC6s_ow6tLCeRqjMGOat1KRkaAFYUS6W4IkB98/s1600/4.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSC-qjoLOhF0TMX0brbq0YdoYxbvtp3rOkuLmHZ2ktp8L06Vu8RVhdC119rRID0TDpLZaEpjDRyR2fEM63EWaqCZ6wHi4V4LNOjg7Ivi9tpkoLf-pPchTdhwk4aHIhtnF8tjyhlpr1hQ8/s1600/5.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="77" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDvnqHzpOMSHBwyc-wGfm4RsnHyEJDnzA117-iqQZ55LslS_Mq0pmZi2sT46_xatsU4GD6mEfZtoALI_jAJ3_atTZmEOo0xQS-6qFDfWCzZ8spXwGQZYcASvg3oZOvLaBckHCeZQBztPk/s400/2.bmp" width="400"></a><br />
Select Configure>Give Object type and External Id<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYENBlM9LHhEZFUUf-_m3o-aA36_4-Dg5RXtqR2okW65SyIu2Tpe0GpoxSIWpV8TY0xxD_LNY2aDaX1UF7MUP3jhDDEt2DJkYrXcpkLarAAYi9f2BvIArgpf4x8diOPBtl9jGGefOPZUI/s1600/3.bmp" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="140" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYENBlM9LHhEZFUUf-_m3o-aA36_4-Dg5RXtqR2okW65SyIu2Tpe0GpoxSIWpV8TY0xxD_LNY2aDaX1UF7MUP3jhDDEt2DJkYrXcpkLarAAYi9f2BvIArgpf4x8diOPBtl9jGGefOPZUI/s400/3.bmp" width="400"></a><br />
Select Retry options<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkKI1g_ZDP15qWqx2EqGjeMwjqA_vmolZqPz-LFDcIm741tGtBNke32YNKzefWtNFv3Uw6QQKZqv7-LCYXRkCYWl78kr6dv8dO_M6TSVC6s_ow6tLCeRqjMGOat1KRkaAFYUS6W4IkB98/s1600/4.bmp" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="115" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkKI1g_ZDP15qWqx2EqGjeMwjqA_vmolZqPz-LFDcIm741tGtBNke32YNKzefWtNFv3Uw6QQKZqv7-LCYXRkCYWl78kr6dv8dO_M6TSVC6s_ow6tLCeRqjMGOat1KRkaAFYUS6W4IkB98/s320/4.bmp" width="320"></a><br />
Map Inputs like below<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSC-qjoLOhF0TMX0brbq0YdoYxbvtp3rOkuLmHZ2ktp8L06Vu8RVhdC119rRID0TDpLZaEpjDRyR2fEM63EWaqCZ6wHi4V4LNOjg7Ivi9tpkoLf-pPchTdhwk4aHIhtnF8tjyhlpr1hQ8/s1600/5.bmp" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSC-qjoLOhF0TMX0brbq0YdoYxbvtp3rOkuLmHZ2ktp8L06Vu8RVhdC119rRID0TDpLZaEpjDRyR2fEM63EWaqCZ6wHi4V4LNOjg7Ivi9tpkoLf-pPchTdhwk4aHIhtnF8tjyhlpr1hQ8/s400/5.bmp" width="400"></a><br />
Before that you need to create orchestration variables<br />
<br />
I have created four variables of String Type.<span id="goog_731206566"></span><span id="goog_731206567"></span><br />
<br />
Each and every variable should be initialized.<br />
<br />
Output values if necessary map with orchestration variables <br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVLm7SNfrTRG8TPSoSto0VFY0WBqD7b5Krx2W-CPn1kIpSpgwXLoV54i7n1QbVNONYHgQlzZRbstU_qOIKIXcTnOYE33z7ORpTd9YwFcoF9Sl9huX1P8X1ckuUvmZOEcehqryS47ZpYzI/s1600/6.bmp" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="121" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVLm7SNfrTRG8TPSoSto0VFY0WBqD7b5Krx2W-CPn1kIpSpgwXLoV54i7n1QbVNONYHgQlzZRbstU_qOIKIXcTnOYE33z7ORpTd9YwFcoF9Sl9huX1P8X1ckuUvmZOEcehqryS47ZpYzI/s320/6.bmp" width="320"></a> <br />
<br />
Click on Verify Activity<br />
<br />
Like above it will display the results in instances<br />
<br />
4. Now check salesforce wether record got inserted or updated.<br />
<br />
Based on the External Id, If that id already present in saleforce then it will insert record, if the external id field value not present in saleforce then it will insert the value.<br />
<br />
<br /></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- SF_OldBlog_InPostsNPages -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9025028163732500"
data-ad-slot="5439997674"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-44671322770818585212013-02-10T09:59:00.003-08:002013-02-10T09:59:58.797-08:00CAMPAIGNS<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-8789295825260342013-02-10T09:51:00.008-08:002013-02-10T09:51:58.615-08:00Integration between Cast Iron and Microsoft SQL Server 2005<div dir="ltr" style="text-align: left;" trbidi="on">
Connecting Cast Iron with Salesforce:<br />
<br />
Inserting data from Cast Iron to Salesforce:<br />
<br />
Inserting data from Cast Iron to Microsoft SQL Server 2005:<br />
<br />
Inserting data from Microsoft SQL Server 2005 to Salesforce:<br />
<br />
Inserting data from Salesforce to Microsoft SQL Server 2005:<br />
<br />
<br />
<br /></div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-45983938059351014712013-02-03T04:28:00.002-08:002013-02-03T04:35:19.685-08:00Difference between Interface and Abstract Class<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-IN</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]-->
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="color: #002060;">Interface</span></b></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="color: #002060;">Abstract Class</span></b></div>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
Declare with keyword Interface</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
Declare with keyword Abstract</div>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
It will not contain constructor</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
It may or may not contain constructor</div>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
By default all methods are public abstract methods.</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
It contains abstract methods and non abstract methods.</div>
</td>
</tr>
<tr style="mso-yfti-irow: 4;">
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
It contains only final variables</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
It contains final variables and instance variables</div>
</td>
</tr>
<tr style="mso-yfti-irow: 5; mso-yfti-lastrow: yes;">
<td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
We can implement multiple interfaces</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 231.05pt;" valign="top" width="308"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
We can inherit only one abstract class</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
table.MsoTableGrid
{mso-style-name:"Table Grid";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-priority:59;
mso-style-unhide:no;
border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid windowtext;
mso-border-insidev:.5pt solid windowtext;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-fareast-language:EN-US;}
</style>
<![endif]--></div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0tag:blogger.com,1999:blog-4113775926550404397.post-77415166173318894392013-01-16T21:41:00.004-08:002013-01-16T21:41:39.022-08:00How to deactivate security token to be enter?<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #990000;"><b>Refer:</b></span><br />
<a href="http://forcecertified.com/2010/11/28/dont-like-identity-confirmation-heres-one-way-to-disable-it-not-a-best-practice/" target="_blank">Avoid security token to enter</a></div>
Srinu Sfdchttp://www.blogger.com/profile/08968847893662026900noreply@blogger.com0