Forcetalks | Himanshu | Activity https://www.forcetalks.com/himanshujasuja/activity/ Activity feed for Himanshu. Wed, 01 Apr 2026 18:18:43 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 b872d7086156dc1541c78db127c08c23 Himanshu replied to the discussion How can I make a pdf from visualforce page in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-make-a-pdf-from-visualforce-page-in-salesforce/#post-15287 Tue, 16 Aug 2016 08:34:15 +0530 Reply to How can I make a pdf from visualforce page in Salesforce?

Hi Pranav,

use this tag to convert the page into pdf.

]]>
cf6e1d10c2087bb08e54317064488789 Himanshu replied to the discussion I want to generate a random string,which contain alphabet and number both,please help to write a code. in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-want-to-generate-a-random-stringwhich-contain-alphabet-and-number-bothplease-help-to-write-a-code/#post-15286 Tue, 16 Aug 2016 08:20:57 +0530 Reply to I want to generate a random string,which contain alphabet and number both,please help to write a code.

Hi Tanu,

Use the below code:-

Integer len = 6;
Blob blobKey = crypto.generateAesKey(128);
String key = EncodingUtil.convertToHex(blobKey);
String pwd = key.substring(0,len);
System.debug('************ '+pwd);

Hope this helps you.

]]>
30fdf57ebf0f5220593f0f65ee3a808b Himanshu replied to the discussion Where to use ISBLANK and ISNULL, make it clear please? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/where-to-use-isblank-and-isnull-make-it-clear-please/#post-15285 Tue, 16 Aug 2016 08:11:50 +0530 Reply to Where to use ISBLANK and ISNULL, make it clear please?

Hi Tanu,

ISBLANK has the same functionality as ISNULL, but also supports text fields.ISNULL mainly use for check the numeric values.

]]>
2dc40723b460e724d88d1c565c45bf99 Himanshu replied to the discussion Can we generate a VF page as PDF format and downlaod it on local system? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-generate-a-vf-page-as-pdf-format-and-downlaod-it-on-local-system/#post-15143 Thu, 11 Aug 2016 05:13:31 +0530 Reply to Can we generate a VF page as PDF format and downlaod it on local system?

Hi Mohit,

You can use 'renderAs="pdf"' tag in Visualforce Page.

]]>
5c578ac4a6e19d217502423f4262f750 Himanshu replied to the discussion How to get all email type field values? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-get-all-email-type-field-values/#post-15084 Wed, 10 Aug 2016 06:39:31 +0530 Reply to How to get all email type field values?

Hi Tanu,

String EmailFiels = '';
for(Schema.SObjectField field : ObjectName.getSobjectType().getDescribe().fields.getMap().values())
{
if(Schema.DisplayType.EMAIL == field.getDescribe().getType())
EmailFiels += ', ' + field.getDescribe().getName();

}
EmailFiels = EmailFiels.removeStart(',');
you can get all the email type field… Read more

]]>
f7b7ad2969166b72ebfb3dad304f634a Himanshu replied to the discussion How can I append entire fields at once in query? Like 'SELECT * FROM ACCOUNT' in SQL . in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-append-entire-fields-at-once-in-query-like-select-from-account-in-sql/#post-15083 Tue, 09 Aug 2016 14:06:36 +0530 Reply to How can I append entire fields at once in query? Like 'SELECT * FROM ACCOUNT' in SQL .

Hi Pranav,

you can use the eclipse for the entire fields to make the query.

]]>
2900af7cd1438c57d31378d740ebf9da Himanshu replied to the discussion How would we know that the process builder is executing our process in the way we want? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-would-we-know-that-the-process-builder-is-executing-our-process-in-the-way-we-want/#post-15065 Tue, 09 Aug 2016 13:20:37 +0530 Reply to How would we know that the process builder is executing our process in the way we want?

Hi Mohit,

You can test the functionality of process builder for different scenarios(Insert/update/delete) to verify/check the functionality.

]]>
75f9acf35c91af413eb8ede4f494daad Himanshu replied to the discussion How To add a link on standard contact detail page ? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-add-a-link-on-standard-contact-detail-page/#post-15063 Tue, 09 Aug 2016 12:24:20 +0530 Reply to How To add a link on standard contact detail page ?

Hi Piyush,

you can use the Hyperlink() function in the formula and have it generate the URL to that Visualforce page.

Hope this helps you.

]]>
ea8e8848300aeffe04c2a59e8afe2362 Himanshu updated their profile https://www.forcetalks.com/activity/p/11977/ Tue, 09 Aug 2016 08:53:29 +0530 0 394d2100186bd88ddd571036d3c0f3fc Himanshu updated their profile https://www.forcetalks.com/activity/p/11871/ Fri, 05 Aug 2016 14:37:29 +0530 0 7e5e85b5db76739a22ba5d251d5f9c65 Himanshu replied to the discussion Is it possible to run a SOQL Query and get a MAP returned? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-it-possible-to-run-a-soql-query-and-get-a-map-returned/#post-15005 Fri, 05 Aug 2016 13:32:38 +0530 Reply to Is it possible to run a SOQL Query and get a MAP returned?

Hi Tanu,You can use the below query

Map m = new Map([SELECT Id, Name FROM Account]);

]]>
f2c37b0e347775a9eb0b442e33df70ee Himanshu replied to the discussion How to change the page block title font size in vf page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-change-the-page-block-title-font-size-in-vf-page/#post-15004 Fri, 05 Aug 2016 13:29:13 +0530 Reply to How to change the page block title font size in vf page?

Hi Pranav,

Use css to style it as needed.It will change the font size.

Example:-
Add in style - font-size: %;

]]>
00790eeb8d3a7eadfd85ffc4b6eeaa1b Himanshu replied to the discussion How to apply EDIT/DELETE link to each record in pagetable? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-apply-editdelete-link-to-each-record-in-pagetable/#post-15003 Fri, 05 Aug 2016 13:23:23 +0530 Reply to How to apply EDIT/DELETE link to each record in pagetable?

Hi Tanu,

For Example - We are taking Account object

Edit

Delete

Hope this helps you.

]]>
5f17243788bc04a5c6409338caa8e142 Himanshu updated their profile https://www.forcetalks.com/activity/p/11852/ Fri, 05 Aug 2016 11:42:04 +0530 0 58ea526c87fd81d6683c6154921f209a Himanshu replied to the discussion How can I add send an Email functionality button for custom object as it is available for Account/contact/opportunity? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-add-send-an-email-functionality-button-for-custom-object-as-it-is-available-for-accountcontactopportunity/#post-14991 Fri, 05 Aug 2016 07:45:05 +0530 Reply to How can I add send an Email functionality button for custom object as it is available for Account/contact/opportunity?

Hi Pranav,

Create a visualforce button that updates a field on the record and fires off a workflow email alert.
You can choose the email template that email workflow alert fires off of.

Hope this helps you.

]]>
c51e760e4cbe00965f52405356646385 Himanshu replied to the discussion What are the standard validations in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/all-the-validations-we-build-using-validation-rules-vf-page-are-the-custom-validations-so-what-are-the-standard-validations-in-salesforce/#post-14990 Fri, 05 Aug 2016 07:32:49 +0530 Reply to What are the standard validations in Salesforce?

Hi Pranav,

The ones provided by Salesforce are standard validation rules - like data type validation for all the fields (email validation for email fields and similar for currency, number type fields etc); universally required; unique fields.

]]>
00d1f084e43a3932295a7b1754e7976f Himanshu replied to the discussion How to get download link/url from attachment file in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-get-download-linkurl-from-attachment-file-in-salesforce/#post-14989 Fri, 05 Aug 2016 07:18:13 +0530 Reply to How to get download link/url from attachment file in salesforce?

Hi Tanu,

Download Now!

]]>
73b1a5415fcf6d7e5ac94ba659a15d57 Himanshu replied to the discussion How can we find unused methods in Apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-find-unused-methods-in-apex/#post-14988 Fri, 05 Aug 2016 07:10:50 +0530 Reply to How can we find unused methods in Apex?

Hi Tanu,

Refer this link :-

Spring Cleaning Apex Code with the Tooling API

In this link we have some tools that helps to find the unused methods in apex.

Hope this helps you.

]]>
d378896aa7c128630e3da670a3817dce Himanshu replied to the discussion How can we control trigger to fire only for some users which share same profile? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-control-trigger-to-fire-only-for-some-users-which-share-same-profile/#post-14987 Fri, 05 Aug 2016 07:06:17 +0530 Reply to How can we control trigger to fire only for some users which share same profile?

Hi Tanu,

you can use UserInfo.getProfileId() method will give you the logged in user profile. Accordingly, you can implement conditions in your trigger code

]]>
cd9218768b648d20da5400870becebc9 Himanshu replied to the discussion How to combine the blob value of multiple blob in Salesforce Apex Code? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-combine-the-blob-value-of-multiple-blob-in-apex-code/#post-14986 Fri, 05 Aug 2016 07:03:10 +0530 Reply to How to combine the blob value of multiple blob in Salesforce Apex Code?

Hi Mohit,

Blob bb1 = Blob.valueOf('s1');
Blob bb2 = Blob.valueOf('s2');
Blob bb3 = Blob.valueOf('s3');

String combinedDataAsHex = EncodingUtil.convertToHex(bb1) + EncodingUtil.convertToHex(bb2) + EncodingUtil.convertToHex(bb3);
Blob combinedDataAsBlob = EncodingUtil.convertFromHex(combinedDataAsHex);

]]>
d8905c88c1e376ade42d3b56077dc44d Himanshu replied to the discussion Can we have the lookup on the email templates and how? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-have-the-lookup-on-the-email-templates-and-how/#post-14985 Fri, 05 Aug 2016 06:56:01 +0530 Reply to Can we have the lookup on the email templates and how?

Hi Mohit,

you cannot have a Lookup field in either a standard object or custom object that points to an email template.

Refer this linki:- https://success.salesforce.com/ideaview?id=08730000000HQ9QAAW

]]>
041371abb2670feb10c5668323cd5e92 Himanshu replied to the discussion Can we dynamically assign value to apex:repeat in VisualForce Page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-dynamically-assign-value-to-apexrepeat-in-visualforce-page/#post-14958 Thu, 04 Aug 2016 07:27:34 +0530 Reply to Can we dynamically assign value to apex:repeat in VisualForce Page?

Hi Mohit,

<apex:repeat value="{!listItems}" var="item">
<tr>
<td>
{!item[attribute]}
</td>
</tr>
</apex:repeat

]]>
817e87103925ef841f5459407edaadbe Himanshu replied to the discussion How to create the JavaScript Tree in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-create-the-javascript-tree-in-salesforce/#post-14955 Thu, 04 Aug 2016 07:23:49 +0530 Reply to How to create the JavaScript Tree in Salesforce?

Hi Mohit,

Refer this link:- http://www.forcetree.com/2011/04/tree-view-in-visualforce-page.html

Tree View in Visualforce Page

this links helps you to create the tree view in salesforce.

]]>
08f527cb724ee56285174d4bcd5821a4 Himanshu replied to the discussion How to get custom label value in custom link? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-get-custom-label-value-in-custom-link/#post-14954 Thu, 04 Aug 2016 07:18:46 +0530 Reply to How to get custom label value in custom link?

Hi Mohit,

<apex:commandLink value="{!$Label.MyLabel1}" onclick="return confirm('{!$Label.QuestionLabel}')" >
</apex:commandLink>

MyLabel1 - Label Name

]]>
ff1a3bcaf0966780ba24f5f3d65b7094 Himanshu replied to the discussion How to create NEW CASE button within Opportunity screen? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-create-new-case-button-within-opportunity-screen/#post-14951 Thu, 04 Aug 2016 07:14:43 +0530 Reply to How to create NEW CASE button within Opportunity screen?

Hi Tanu,

Create a "NEW CASE" custom button under the Case Object.

Enter the URL from the address bar of the page you want them to be directed to. In my case I wanted a specific record type for cases created from an opportunity.

Save the new button and then on the Opportunity layout page, go to the Case Related list section, and click on… Read more

]]>
320006f40ed7bedc88aab7042cbad6b9 Himanshu replied to the discussion Can we have the same picklist data in multiple objects? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/have-the-same-picklist-data-in-multiple-objects/#post-14944 Thu, 04 Aug 2016 07:10:29 +0530 Reply to Can we have the same picklist data in multiple objects?

Hi Tanu,

You can use the  Global picklist feature to achieve this functionality.

]]>
316bfb10cab610a1fa1306e8d4700630 Himanshu replied to the discussion How to update the converted lead? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-update-the-converted-lead/#post-14943 Thu, 04 Aug 2016 07:08:36 +0530 Reply to How to update the converted lead?

Hi Tanu,

To update converted leads:
"Set Audit Fields upon Record Creation"AND

"Update Records with Inactive Owners"
From Setup, enter User Interface in the Quick Find box, then select User Interface.
Select Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions.
Save your changes.
Add… Read more

]]>
19bf1f93ace5e1f790fded559bf10fcd Himanshu replied to the discussion How to determine whether to use After or before in Salesforce trigger? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-determine-whether-to-use-after-or-before-in-trigger/#post-14922 Tue, 02 Aug 2016 13:29:43 +0530 Reply to How to determine whether to use After or before in Salesforce trigger?

Hi Pranav,

Before Trigger:-

I'm updating the record that's being updated/inserted - or doing something based on the record being modified
Examples: Set value of a pick list based on criteria. Send apex e-mail based on the record updated/inserted.

After Trigger:-

I'm updating or creating records that are NOT being… Read more

]]>
e47b9eb70b3dc09135bf151e284da4f0 Himanshu replied to the discussion When should I use Lists and Maps and Sets in Apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/when-should-i-use-lists-and-maps-and-sets-in-apex-any-particular-reason-to-choose-any-of-these/#post-14921 Tue, 02 Aug 2016 13:26:54 +0530 Reply to When should I use Lists and Maps and Sets in Apex?

Hi Pranav,

List : A list is an ordered collection
so use list when you want to identify list element based on Index Number.(List can contain Duplicates)
EX: List

Set: A set is an unordered collection of primitives or sObjects that do not contain any duplicate elements.
So, use set if you want to make sure that your collection should not… Read more

]]>
88eb739a1795d9961d98bdcf08961c04 Himanshu replied to the discussion When to use Test.isRunningTest() in Salesforce Apex Class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/when-to-use-test-isrunningtest-in-salesforce-apex-class/#post-14920 Tue, 02 Aug 2016 13:23:39 +0530 Reply to When to use Test.isRunningTest() in Salesforce Apex Class?

Hi Pranav,

isRunningTest()

Returns true if the currently executing code was called by code contained in a test method, false otherwise. Use this method if you need to run different code depending on whether it was being called from a test.

Other scenarios:
1) To ensure the trigger doesn't execute the batch if Test.IsRunningTest() is true,… Read more

]]>
6f4c5dda518be00bdd9c18a5d0aad07a Himanshu replied to the discussion When to use Test.isRunningTest() in Salesforce Apex Class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/when-to-use-test-isrunningtest-in-apex-class-is-it-comes-under-best-practices/#post-14920 Tue, 02 Aug 2016 13:23:39 +0530 Reply to When to use Test.isRunningTest() in Salesforce Apex Class?

Hi Pranav,

isRunningTest()

Returns true if the currently executing code was called by code contained in a test method, false otherwise. Use this method if you need to run different code depending on whether it was being called from a test.

Other scenarios:
1) To ensure the trigger doesn't execute the batch if Test.IsRunningTest() is true,… Read more

]]>
4a094b26ee4507f511673b808660859d Himanshu replied to the discussion What is the difference between WhoId and WhatId? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-whoid-and-whatid/#post-14919 Tue, 02 Aug 2016 13:15:39 +0530 Reply to What is the difference between WhoId and WhatId?

Hi Hazel,

WhoID - refers to people things.Ex- Lead ID or a Contact ID
WhatID- refers to object type things.Ex- Account ID or an Opportunity ID

]]>
c5303ab6946eacb4fbe5514fba236bbf Himanshu replied to the discussion Is there any way that we can find that particular sobject query can we applied or not in apex code? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-way-that-we-can-find-that-particular-sobject-query-can-we-applied-or-not-in-apex-code/#post-14851 Mon, 01 Aug 2016 12:53:33 +0530 Reply to Is there any way that we can find that particular sobject query can we applied or not in apex code?

Hi Mohit,Can you elaborate your question and give us more detail of your requirement?

]]>
7b07feb8e0f40cd98b3eaa90acdc804f Himanshu replied to the discussion What is difference between the Test environment for the class and the Production environment for the class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-difference-between-the-test-environment-for-the-class-and-the-production-environment-for-the-class/#post-14850 Mon, 01 Aug 2016 12:50:16 +0530 Reply to What is difference between the Test environment for the class and the Production environment for the class?

Hi Mohit,

Hi

Production Enviroment of Apex Class:- its a piece of code which do some task in your application.
in simple if you have written a piece of code to add two fields and display that in another field.

Ex:-

Public Class add{
your code..........
}

Test Enviroment of Apex test Class :-its also a piece of code which test… Read more

]]>
3669200cacf66d443d90c2f9005efde3 Himanshu replied to the discussion Dynamic Query via Visualforce Page in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/dynamic-query-via-visualforce-page/#post-14849 Mon, 01 Aug 2016 11:25:45 +0530 Reply to Dynamic Query via Visualforce Page

Hi Mohit,

Below is the code of fetching data via dynamic query and shows on the visualforce… Read more

]]>
e3a77a3248ded48ed3d92f1a266d589c Himanshu replied to the discussion How to send an automatic email to owner that a particular user opens the record based on role hierarchy? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-send-an-automatic-email-to-owner-that-a-particular-user-opens-the-record-based-on-role-hierarchy/#post-14848 Mon, 01 Aug 2016 10:59:34 +0530 Reply to How to send an automatic email to owner that a particular user opens the record based on role hierarchy?

Hi Pranav,

You can use the workflow(Email Alert) to send the email to owner.

]]>
f576be7e5b7abde49a0fead5b7488919 Himanshu replied to the discussion How can I overwrite the standard lookup field? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-overwrite-the-standard-lookup-field/#post-14847 Mon, 01 Aug 2016 08:16:12 +0530 Reply to How can I overwrite the standard lookup field?

Hi Pranav,

You can follow Jeff's tutorial to override standard lookup.

http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window

Hope this helps you.

]]>
e80ea41f37d3c2b5c7204c86df5f7327 Himanshu replied to the discussion How can I disable any(either custom or standard) button after performing its action? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-disable-anyeither-custom-or-standard-button-after-performing-its-action/#post-14846 Mon, 01 Aug 2016 08:07:30 +0530 Reply to How can I disable any(either custom or standard) button after performing its action?

Hi Pranav,Try the below code that helps you to disable and enable the button.

My Button

Disable "My Button"
Undisable "My Button"

function disableBtn() {
document.getElementById("myBtn").disabled = true;
}

function undisableBtn() {
document.getElementById("myBtn").disabled = false;
}

]]>
978c6e2f230e6220ff7f79d9fe273858 Himanshu replied to the discussion How to store/enter more than 255 characters in a custom setting field? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-storeenter-more-than-255-characters-in-a-custom-setting-field/#post-14845 Mon, 01 Aug 2016 07:31:36 +0530 Reply to How to store/enter more than 255 characters in a custom setting field?

Hi Pranav,

No, you can't currently store more than 255 characters in any field in a Custom Setting. If you absolutely need this, you'd have to use multiple fields or use a full-blown Custom Object.

]]>
20021f480261bfe49dedaede38bf509b Himanshu replied to the discussion How can I use soql query on sobject in community user in apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-use-soql-query-on-sobject-in-community-user-in-apex/#post-14824 Fri, 29 Jul 2016 13:28:18 +0530 Reply to How can I use soql query on sobject in community user in apex?

Hi Pranav,

If you have the sobject name in a string, e,g, 'sobjname', you can then query back the record via something like:

String queryStr='select id from ' + sobjname;

List<sobject> = Database.query(queryStr);

Hope this helps you.

]]>
9e0e99d22b54a11c6d8ec74a7b245901 Himanshu replied to the discussion Can we direct Access a server side controller method from lightning component? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-direct-access-a-server-side-controller-method-from-lightning-component/#post-14817 Fri, 29 Jul 2016 13:05:45 +0530 Reply to Can we direct Access a server side controller method from lightning component?

Hi Tanu,

You can't access directly the server side controller method.Use the @AuraEnabled annotation to enable client- and server-side access to the controller method in lightning.

]]>
bdaddc9a1acb7be5daa078438c6113c0 Himanshu replied to the discussion in the forum https://www.forcetalks.com/salesforce-topic/how-can-we-evaluate-best-salesforce-consulting-company/#post-14816 Fri, 29 Jul 2016 12:54:47 +0530 Hi Daisy,

These are the some points that helps to identify the best salesforce consulting company.

  1. Salesforce.com Consultant Team Capabilities

2. Salesforce.com Consultant Team Experience

3. Salesforce.com Consultant Client References

4.  Salesforce.com Consultant Vendor Focus and Depth

5.  Salesforce.com Consultant Project Design

I… Read more

]]>
5c6fe35ac57195f2597dc93837a1733e Himanshu replied to the discussion Is there any way to duplicate the visualforce page in Salesforce community? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-way-to-duplicate-the-visualforce-page-in-salesforce-community/#post-14815 Fri, 29 Jul 2016 11:57:50 +0530 Reply to Is there any way to duplicate the visualforce page in Salesforce community?

Hi Mohit,

You cannot duplicate the Visual force page in Salesforce community but you can clone the page.

]]>
c7006d604071396f5ed128b722c9726b Himanshu replied to the discussion Is there any way to duplicate the visualforce page in Salesforce community? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-way-to-duplicate-the-visualforce-page-in-salesforce-community/#post-14815 Fri, 29 Jul 2016 11:57:50 +0530 Reply to Is there any way to duplicate the visualforce page in Salesforce community?

Hi Mohit,

You cannot duplicate the Visual force page in sales force community but you can clone the page.

]]>
208a08b514733e91bb344b73a135e74b Himanshu replied to the discussion How to use console component in salesforce classic? Is there any way to use it in standard app? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-use-console-component-in-salesforce-classic-is-there-any-way-to-use-it-in-standard-app/#post-14814 Fri, 29 Jul 2016 11:53:44 +0530 Reply to How to use console component in salesforce classic? Is there any way to use it in standard app?

Hi Pranav,
Go to  Setup, enter Apps in the Quick Find box, then select Apps.
Select a console app.
Click Edit.
In Choose Custom Console Components, add available components to your app.
In Align Console Components, choose whether to align components to the left or right of the console’s footer.
Click Save.

We can't use console component in… Read more

]]>
fffd17e886ecf8bc9c742effaca77035 Himanshu replied to the discussion If we declare lightning style in a Salesforce lightning component does it affect lightning application? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/if-we-declare-lightning-style-in-lightning-component-does-it-affect-lightning-application/#post-14797 Thu, 28 Jul 2016 12:38:10 +0530 Reply to If we declare lightning style in a Salesforce lightning component does it affect lightning application?

Hi  Pranav,

if you use  this tag that's that helps you to provide the standard css in your lightning pages.

<ltng:require styles=”{!$Resource.REPLACE_WITH_NAME_OF_SLDS_STATIC_RESOURCE +’/assets/styles/salesforce-lightning-design-system-ltng.css’}”/>

 

]]>
fc78065f25ca1956412448862a9ee282 Himanshu replied to the discussion How can we export the result of a query editor in to the file? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-export-the-result-of-a-query-editor-in-to-the-file/#post-14796 Thu, 28 Jul 2016 12:28:11 +0530 Reply to How can we export the result of a query editor in to the file?

Hi Mohit,

You can use the Developer Workbench to export the results in csv:

https://workbench.developerforce.com/login.php

]]>
a7371e2249bc7cefd6ae13fa84610685 Himanshu replied to the discussion How to make output link work for both drill down and open a new tab? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-make-output-link-work-for-both-drill-down-and-open-a-new-tab/#post-14793 Thu, 28 Jul 2016 11:13:56 +0530 Reply to How to make output link work for both drill down and open a new tab?

Hi Tanu,

<apex:outputLink value="{!redirectUrl}" onClick="window.top.location.href = '{!redirectUrl}'; return false;">{!fa[field]}
</apex:outputLink>

]]>
313e2e1ed21c673e924f590670527cb7 Himanshu replied to the discussion Checkbox checked then fields will appear in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/checkbox-checked-then-fields-will-appear/#post-14792 Thu, 28 Jul 2016 10:42:21 +0530 Reply to Checkbox checked then fields will appear

Hi Tanu,

<apex:page controller="testcontroller">

<apex:form >

<apex:pageBlock >
<apex:commandButton value="Process"/>
<apex:inputCheckbox value="{!output1}">Export</apex:inputCheckbox>
<apex:inputCheckbox value="{!output2}">Import</apex:inputCheckbox>
<apex:outputPanel id="out1" rendered="{!output1}">
<p>hello this… Read more

]]>
b69777b6f76fbd19f5d8c8e57bfb3296 Himanshu replied to the discussion Approval process in Salesforce apex classes in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/approval-process-in-salesforce-apex-classes/#post-14785 Thu, 28 Jul 2016 10:30:28 +0530 Reply to Approval process in Salesforce apex classes

Hi Pranav,

In this code we have used some approval methods that helps for execution the process by code.

public class TestApproval {
void submitAndProcessApprovalRequest() {
// Insert an account
Account a = new Account(Name='Test',annualRevenue=100.0);
insert a;

User user1 = [SELECT Id FROM User WHERE Alias='SomeStandardUser'];

// Create… Read more

]]>