• You can do this using lightning event.Lightning event is best way communicate between two components.

    You need to follow these steps for these type of scenario:

    1. Create a main component which will be use as container for two components.
    2. Let suppose you want to swap from component A to component B.First create view for component A in main…

    [Read more]

  • Ravi replied to the topic

    How to attach file using Salesforce Lightning for Salesforce1?

    2 years, 2 months ago

    Hi Tanu,

    You can do this using base64 encoding . You have to follow these steps.

    1.Use JavaScript’s FileReader’s readAsDataURL to read the file selected by the file input into a String variable.
    2.Encode the contents using JavaScript’s encodeURIComponent function.
    3.Call the @AuraEnabled action with the contents, content type, and the Id of the…[Read more]

  • This keyword used to represent the current instance of the class.We use This keyword to differentiate between class instance variable and local variable.

    Example:

    public class ThisKeywordDemo{
    String str = ‘DefaultValue’;
    public  ThisKeywordDemo(String str){
    System.debug(‘–local Value–‘+str);
    System.debug(‘–Current Instance V…

    [Read more]

  • This keyword used to represent the current instance of the class.We use This keyword to differentiate between class instance variable and local variable.

    Example:

    public class ThisKeywordDemo{
    String str = ‘DefaultValue’;
    public  ThisKeywordDemo(String str){
    System.debug(‘–local Value–‘+str);
    System.debug(‘–Current Instance V…

    [Read more]

  • You can use Data Loader to export all sobject record from salesforce to your local system and access it by excel .

  • You can create a  validation rule on your object for specific field value.

    You can also create a trigger for this but validation rule is much easier.

  • You can’t add Visualforce page in the standard related List.

    Can you explain your situation why you need to add inline vf page  in related list?

  • Ravi replied to the topic

    How can we find the unused method in apex class?

    2 years, 5 months ago

    Here what I do when I need to find out unused method ,classes or any other component  in my org.

    I am assuming that you are using eclipse for your development and you have created  project for your org.

    Go ahead and press Ctrl + H ; it will open a popup , type the component you want to search(method).

    It will show where your components are us…[Read more]

  • Ravi replied to the topic

    How can we find the unused method in apex class?

    2 years, 5 months ago

    Here what I do when I need to fiend out unused method ,classes or any other component  in my org.

    I am assuming that you are using eclipse for your development and you have created  project for your org.

    Go ahead and press Ctrl + H ; it will open a popup , type the component you want to search(method).

    It will show where your components are us…[Read more]

  • Ravi replied to the topic

    Account records do not match

    2 years, 5 months ago

    Hi Bruce,

    I think you are exporting data By selecting Export option which exclude recycle bin’s data(deleted record).
    If you want to export all data including deleted record then you should use Export All option.
    So try to export record using Export All option and let me know if you are still getting different number of
    records from…[Read more]

  • Pratyush and Ravi are now friends
  • Ravi replied to the topic

    How can we check in there is some data or not?

    2 years, 5 months ago

    If you are doing this in Apex class then just use if condition to check field value.

    `If(Sobject.field == ‘fieldValue’){
    }

  • Ravi replied to the topic

    How can we check in there is some data or not?

    2 years, 5 months ago

    If you are doing this in Apex class then just use if condition to check field value.

    If(sobject.field == \'fieldvalue\'){
    }

  • One of the key facet of salesforce is import and export data from salesforce.Data loader is a great tool provided by salesforce to achieve this. Mean while Data loader user interface required manual work for this […]

    • Breone replied 4 months ago

      Is this also compatible with Salesforce Lightning? This looks like Java code; isnt salesforce lightning not compatible with Java?

  • Tanu and Ravi are now friends
  • Scott and Ravi are now friends
  • Rohit and Ravi are now friends
  • Laxman and Ravi are now friends
  • Gourav and Ravi are now friends
  • Mohit and Ravi are now friends
  • Load More

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?