Forum Replies Created

Page 16 of 17
  • Ratnesh

    Member
    January 30, 2020 at 1:01 pm in reply to: What is V and C in Salesforce Lightning?

    V refers to view and c refers to controller.

    When we use v.abc, we are actually calling value hold by attribute abc.
    When we use c.xyz, we are calling value return by the controller It can be server-side-controller (.JS controller )or client-side-controller (Apex Class)

  • Ratnesh

    Member
    January 29, 2020 at 3:18 pm in reply to: Is Opportunity is a Child Of Contact in Salesforce?

    OpportunityContactRole is child of both Account and opportunity. Here OpportunityContactRole is junction object to achieve many to many relationship between Opportunity and Contact.

  • Ratnesh

    Member
    January 29, 2020 at 3:15 pm in reply to: What is Lightning Design System in Salesforce?

    The Lightning Design System is run as an open source project and is available to everyone. The Lightning Experience provides a clear, efficient, consistent, and beautiful experience out-of-the-box. Developers building on top of Enterprise systems often have to choose between mimicking their Enterprise system’s UI at the risk of delivering a subpar experience, or providing a better UI at the risk of confusing users with a disconnected experience.

     

  • Ratnesh

    Member
    January 29, 2020 at 3:12 pm in reply to: What is the use of @AuraEnabled annotation in Salesforce Apex?

    We use AuraEnabled Annotation in Salesforce so that particular method is available for the Lightning component in Salesforce.

  • Ratnesh

    Member
    January 28, 2020 at 2:05 pm in reply to: What is SSO in Salesforce?

    SSO stand from Single sign-on and its lets users access authorized network resources with one login. You validate usernames and passwords against your corporate user database or other client app rather than Salesforce managing separate passwords for each resource.

  • Ratnesh

    Member
    January 28, 2020 at 2:00 pm in reply to: What is the way to restore lost code in Salesforce Developer Console?

    No , There is no way to restore code that is not saved.

    But to avoid this kind of problem in future, please follow this procedure

    1. Before refreshing the sandbox, use eclipse to download all your code components to your local drive.
    2. Keep that local drive copy of your sandbox as backup file
    3. Then initiate your sandbox refresh activity
    4. Later you can move the your backup copy code (i.e., newly created or not released copy of your code)

  • Static resources are referenced using the $Resource global variable, which can be used directly by Visualforce, or used as a parameter to functions such as URLFOR()

  • Ratnesh

    Member
    January 27, 2020 at 2:35 pm in reply to: Why we use the Handler Class in Salesforce?

    In a Salesforce context, a trigger handler is the starting point to 'handle' complex logic set into a trigger. Creating a class defined as MyObjectTriggerHandler can help to design a modular set of reusable objects which manage all the operations to be done by a trigger.

  • Ratnesh

    Member
    January 27, 2020 at 2:34 pm in reply to: What is the Outbound Message in Salesforce and How to use it?

    Outbound messaging allows you to specify that changes to fields within Salesforce can cause messages with field values to be sent to designated external servers. Outbound messaging is part of the workflow rule functionality in Salesforce.

  • Ratnesh

    Member
    January 27, 2020 at 2:29 pm in reply to: What is Cascade Deleting in Salesforce?

    It's deleting parent records who are in mast-detail relationship. When you delete parent in bulk it will delete all child records as well in bulk. This is cascade delete.

  • Ratnesh

    Member
    January 24, 2020 at 2:50 pm in reply to: What is the inner query in SOQL in Salesforce ?

    You need the relationship name to perform inner SOQL query. For example, if you are going to perform a query to get Accounts along with their contacts then your query will be something like –

    Select Id, Name,(Select Id, LastName from Contacts) from Account.

  • Developer Sandbox
    A Developer sandbox is intended for development and testing in an isolated environment. A Developer Sandbox includes a copy of your production org’s configuration (metadata).

    Developer Pro Sandbox
    Use a Developer Pro sandbox to handle more development and quality assurance tasks and for integration testing or user training.

    Partial Copy Sandbox
    A Partial Copy sandbox is intended to be used as a testing environment.

    Full Sandbox
    A Full sandbox is intended to be used as a testing environment.

  • Ratnesh

    Member
    January 24, 2020 at 2:45 pm in reply to: What is thread sleep in Salesforce?

    Sometimes we need make apex thread to sleep for a while, sush as testing if the soql with [For Update] works,and as we know the sfdc do not offer a method to sleep the thread.

  • Ratnesh

    Member
    January 23, 2020 at 12:06 pm in reply to: What is Crone ID in Salesforce?

    A CRON expression is basically a string of five or six fields separated by white spaces that represents a set of times, normally as a schedule to execute some routine.

    These are the values for the expression:-

  • Ratnesh

    Member
    January 23, 2020 at 11:57 am in reply to: How to use Output Text In Visualforce page in Salesforce?

    It is mainly useful to display thr records. You can customize the appearance using CSS styles, in which case the generated text is wrapped in an HTML <span> tag.

    It is useful for customization rather than using pageblock tab for CSS and JS.

    Its Syntax is:-

    <apex :outputText value = ” blah..blah..blah ” id=”theText”></apex :outputText>

     

     

  • Ratnesh

    Member
    January 23, 2020 at 11:51 am in reply to: Differentiate between freeze user and deactivate user in Salesforce ?

    Freezing only stops the user from being able to login. Freezing user accounts doesn’t frees the user licenses available for use in your organization. We have to deactivate the user to free the license in Salesforce

  • Ratnesh

    Member
    January 22, 2020 at 5:42 pm in reply to: What is the difference between Salesforce ActionPoller & Rerendered?

    Rerender is used to refresh a particular section of the visualforce page. We have to just mention the id of the page section (in the Rerender attribute) that needs to be refreshed and Action poller acts as a timer and used to send an AJAX request to the server depending on the time interval.

  • Ratnesh

    Member
    January 22, 2020 at 5:29 pm in reply to: How to create AJAX Buttons in Salesforce?

    Step 1: - Create a VF page with standard controller and put it into the page layout hidden

    Step 2:- Create a button with

    /* Add Jquery library */
    {!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js')} 
    {!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js')} 
    
    jQuery.dialog('Open');
    /* 
    It will open dialog from your page now the control is transferred to your page and you can do anything you want
    Provided you have jQuery dialog code into your page  */

    for more details follow this link;- https://focusonforce.com/configuration/salesforce-list-buttons-javascript-example/

  • Ratnesh

    Member
    January 22, 2020 at 5:13 pm in reply to: What is static resources in Salesforce?

    It allows you to upload your content that you can reference in a Visualforce page.

    It includes:-

    • .zip and .jar files
    • images style sheets
    • JavaScript
    • and other various files.

     

    To reference a stand-alone file, use $Resource.<resource_name> as a merge field, In this <resource_name> is the name you specified when you uploaded the resource.

    For Example,

    <apex:image url="{!$Resource.TestImage3}" width="100" height="160"/>

     

  • Ratnesh

    Member
    January 21, 2020 at 5:36 pm in reply to: what is the Use of database.querylocator in Salesforce?
    • Database.getQueryLocator returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in batch apex.
    • The query locator can return up to 50 million records
    • It should be used in instances where you want to batch a high volume of data up (pagination or batch apex).
    • The database.query method should be used in instances where you are wanting to do a dynamic runtime SOQL query for your code.
  • Hey Pooja,

    <apex:pagemessage> is a tag in visualforce which used to show the message on the page.

    Severity:- It basically denotes the type of message like to show warning, error, info and confirm with an icon.

    Strength:- It basically denotes with the size{o-3}.  Higher the size icon will larger and vice-versa.

    Example:-  <apex:pagemessage summary="Pooja your message will be here" severity="info" strength="3"></apex:pagemessage>

     

  • Ratnesh

    Member
    January 21, 2020 at 5:01 pm in reply to: what is difference between Process Builder and Trigger in Salesforce?

    Hey Manish,

    Here is the basic difference between Process Builder and Trigger in Salesforce:-

  • Ratnesh

    Member
    January 20, 2020 at 2:43 pm in reply to: How are bucket fields used in Salesforce?

    Bucket fields can be used in Salesforce reports to group together field values. These fields are not created on the Salesforce platform and only exist in in the report itself.

  • Ratnesh

    Member
    January 20, 2020 at 2:36 pm in reply to: how to use render and rerender in visualforce page in Salesforce?

    Render: – Is used to show/hide the particular block, output panel or input/output fields based on the condition.

    Example: – You have 2 fields one is visible and second is hidden, you want the second field to be visible when the first field is filled then use render.

    <apex:pageBlockTable value=”{!empList}” var=”emp” rendered=”{!empList.size > 0}”>
    <apex:column value=”{!emp.Name}”/>
    </apex:pageBlockTable>

    reRerender: – Is used to refresh the particular output panel, block, and or fields after a server request has been completed. It uses Id to reRender.

    Example: – You have a VF page where you want to add Contacts related to Account and also wanted to show the recently added Contacts then use reRender to refresh the block which is showing the contact list.

    renderAs: – Is used to open the Visualforce Page in different format like- HTML, pdf, and excel

    Example: – To show the invoice in PDF format.

    for pdf – renderAs =”pdf”

    for HTML – renderAs =”html”

  • Yes, Marziya its possible.

    Second if you do it you can easily hit the governer limit which is 50 future callout per transaction. Trigger run in batch of 200 and there may be more record in single transaction so you can easily hit the limit.

    Here, the difference are:-

Page 16 of 17