Forum Replies Created

Page 7 of 7
  • Gourav

    Member
    April 28, 2016 at 2:16 pm in reply to: How to look for a string from a List of strings?

    @Piyush

    Can you elaborate it because I didn't find anything there!

  • Gourav

    Member
    April 28, 2016 at 1:03 pm in reply to: Validation rule error when existing record is edited

    If you are creating a validation rule on contact then use this in Error condition Formula LastName = 'ok'  and provide some error message to show. it will validation rule check the condition on both time when use create the record or edit any record.

  • Gourav

    Member
    April 28, 2016 at 12:25 pm in reply to: What is Visualforce Component Limits on Visualforce Page?

    Hope this link will help you :- https://help.salesforce.com/apex/HTViewHelpDoc?id=limits_visualforce.htm&language=en_US

     

  • Gourav

    Member
    April 28, 2016 at 11:19 am in reply to: Where should we use Analytic Cloud?

    Before using Analytic Cloud there are some Pros Cons you must know:-
    Pros

    • It's a secure, cloud-based platform.
    • The underlying database is flexible.
    • It's mobile first.

    Cons

    • It's expensive.
    • Data-analysis capabilities aren't well known.
    • It will roll out slowly.
  • Gourav

    Member
    April 28, 2016 at 11:06 am in reply to: How to show pop up alert messages after performing DML operations?

    Hi Piyush,

    Use Database.insert() or Database.update() method in controller it returns Database.SaveResult[] for your record then you have to take a Boolean variable with getter setter and then use that Boolean var in Script on VF page to generate Alert message.

  • These are some basic benefits using 'One trigger per Object' design pattren

    • Reusability – with your logic in a class, you can now re-use it outside of triggers, for example in a Visualforce page, test class, batch Apex, etc. No need to copy code!
    • Simplicity – every “trigger” gets reduced to just two lines of code in the master trigger. An object oriented code base is more organized, predictable, and modular too!
    • Control your order of execution – in Apex, “the order of execution isn’t guaranteed for multiple triggers on the same object.” This pattern gives you total order control.
    • Code in style! - You’re going to look like an Apex master using this pattern whether or not you take advantage of any of the benefits above. Plus, it’s a common interview question!
  • Gourav

    Member
    April 28, 2016 at 7:49 am in reply to: Image in Email Template

    After finding everywhere finally found the answer. Used apex:image tag in the Visualforce Email template and in the tag provided the full path of the image so when we open mail in the outlook they know from where to get the image.

     

  • Gourav

    Member
    April 26, 2016 at 10:48 am in reply to: Is it possible to grant delete permission using apex managed sharing?

    Hi Dana,

    Try this code block to grant 'All' permission to user using apex

    ObjectName__Share instance = new ObjectName__Share();
    instance.ParentId = Object.id;
    instance.UserOrGroupId = User/Group.id;
    instance.AccessLevel = 'All';
    instance.RowCause = Schema.ObjectName__Share.RowCause.Manual;

    Insert/update instance;

     

    Hope above helps you.

  • Gourav

    Member
    April 26, 2016 at 10:19 am in reply to: How to define width of Column in pageBlockTable?

    You can give width size even when you are using page block table inside page block section. refer given example:-

    <apex:pageBlock title="Contacts">
    <apex:pageblockSection>
    <apex:pageBlockTable value="{!account.Contacts}" columnsWidth="100px, 100px" var="item">
    <apex:column value="{!item.name}"/>
    <apex:column value="{!item.name}"/>
    </apex:pageBlockTable>
    </apex:pageblockSection>
    </apex:pageBlock>

     

    @Ravi

  • Gourav

    Member
    April 26, 2016 at 9:55 am in reply to: Datalist not working on iOS in Salesforce visualforce page
  • We can move our VF code to a VF Component Creating and Using Custom Components.

    We can then create two VF pages which each include the same component (the standard controller is then on the VF Page and we can use a custom controller for the component).

    This architecture will allow us to keep our code in one place but use on two standard pages.

     

    Hope this will help.

  • Gourav

    Member
    April 26, 2016 at 8:48 am in reply to: Edit an Email Template from a Visualforce page

    Hi Ravi

    You can use window.open() or location.replace() function in your JavaScript button to open selected email template in edit mode. But before call one of these function you have to identify the type of template because their are different URL to open Email template in edit mode.
    Basically their are 4 type of Email Template:-

    • Text
    • HTML (using Letterhead)
    • Custom (without using Letterhead)
    • Visualforce

    To identify your Email Template use this query:- 'select id,TemplateType from EmailTemplate'

    Once you identified the type of Email Template then you can pass the id of seleceted Email Template to the URL and open that in edit mode. Use these URLs for open that template in edit mode

    • Text:-      /{!EmailTemplate.id}/e?setupid=CommunicationTemplatesEmail&retURL=%2F{!EmailTemplate.id}
    • HTML/Custom:-      /p/email/template/EmailTemplateEditorUi/e?setupid=CommunicationTemplatesEmail&retURL=%2F{!EmailTemplate.id}&TemplateType=1&id={!EmailTemplate.id}
    • Visualforce:-       /email/template/editVFEmailTemplate.apexp?setupid=CommunicationTemplatesEmail&id={!EmailTemplate.id}
  • Gourav

    Member
    April 26, 2016 at 8:00 am in reply to: Replacing Standard Salesforce logo with Custom Logo

    No, Salesforce doesn't allow you to change the Standard app logo. You have to create your own app and then you can use your own logo for that.

  • Gourav

    Member
    March 31, 2016 at 9:28 am in reply to: Picklist in formula Field?

    Create a formula field output type must be TEXT. Then use Text() formula like this:-

    Text(contact__r.Active__c)

    Now put that formula field in page layout to get value in formula field.

  • Gourav

    Member
    March 31, 2016 at 9:23 am in reply to: Difference between Dev-401 & Developer-1 Certification.

    Developer (401) = App Builder
    Advanced Developer (501) = Platform developer 1 and Platform developer 2

    Admin (201) = Admin basic
    Advanced Admin (301) = Admin advanced

    You can find out more here, and open a case with the certification team (http://certification.salesforce.com/)if you'd like to ask them specific questions about what the exams cover.

Page 7 of 7