Forum Replies Created

Page 19 of 20
  • Aditya

    Member
    January 30, 2020 at 1:16 pm in reply to: What is attribute in Salesforce Lightning?

    Hi Ayush,

    Attribute is generally used as a variable in Salesforce Lightning Component to hold value/information

  • Aditya

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

    V refers for view a value of an attribute and C stands for controller that return a value by controller.

  • Aditya

    Member
    January 30, 2020 at 1:01 pm in reply to: What is the Difference between Roles and Profiles in Salesforce?

    Profiles determine which objects, fields, etc. you can access where roles determine what you can see relative to others in the hierarchy within the organization, for example - your boss can see each of his/her forecasts, but you can only see yours and not your colleagues.

  • Aditya

    Member
    January 29, 2020 at 2:46 pm in reply to: What is the use of Page reference in the Salesforce Visualforce Page?

    Pagereference return a reference page refers to a Visualforce page with parameter in query String

  • Aditya

    Member
    January 28, 2020 at 4:01 pm in reply to: What are dynamic dashboards in Salesforce?

    A Dynamic Dashboard enables multiple users to access a dashboard that was previously accessed only by a single static user. This means that the dynamic dashboard can be used by a specific user alongside a logged-in user, and display data specific to both users accordingly.

  • Hi Ayush,

    Yes, Two user have same profile but can access only one profile at a time.

  • Hi Udit,

    To access child record by using normal SOQL:

    List<Account> accList  = [select ID, FirstName, (select ID, Name from  Contact) from Account];

    To access parent record from child:

    List<college__c> univList=[select Name,university__r.Name from college__c
    system.debug(univList);

  • Aditya

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

    Hi Udit,

    Cascade Deleting is use to delete child record automatically when their parent is deleted

  • Aditya

    Member
    January 27, 2020 at 2:54 pm in reply to: What is Handler Class in Salesforce?

    Trigger handlers (not sure if what code you posted you want to keep) "enforce a logical sequence to the trigger code and in turn help to keep code tidy and more maintainable. Keeping trigger logic for each object in a single place avoids problems where multiple triggers are in contention with each other and makes it easier to debug."

  • Aditya

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

    Outbound messaging specify the field change in salesforce that works with the fields values to sent message to the external server.  Outbound messaging uses the notifications() call to send SOAP messages over HTTP(S) to a designated endpoint when triggered by a workflow rule. After you set up outbound messaging, when a triggering event occurs, a message is sent to the specified endpoint URL.

  • Aditya

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

    Salesforce is Multi-tenant Architecture in which sleeping thread is thread which cannot be use by another customer. It would be great if we had a way of sleeping the running thread server side while we waited on something to happen inside of Apex code. When working with objects that have triggers, the triggers run separately.

  • Aditya

    Member
    January 24, 2020 at 2:25 pm in reply to: What is the difference between roles and profiles in Salesforce?
    Role:

    It provide us what type of record access a particular user has

    Profile:

    It provide CRUD operation for object and fields and access to tabs and applications

  • Aditya

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

    Hi Arun

    SOQL Queries are used to retrieve the data from the database. it should have parent child relationship between its, then you go for inner query.

  • Aditya

    Member
    January 23, 2020 at 2:54 pm in reply to: How to use wrapper class in visualforce page in Salesforce?

    Any Salesforce developer would be familiar with creating parent child relationship queries in APEX. For example getting a list of products with their respective prices we use such queries. However when we take that data to Visualforce pages it becomes a little bit hectic to show that data. This problem can be solved with the help of wrapper class. This is what I am going to show you today, how to create a wrapper class in apex.

     public list<productwrapper> recordlist { get; set;}
        public list<selectoption> status;
        public string selectedstatus { get; set;}
        
        public wrappertest(){
            list<product2> pro = [select id, name, isactive from product2];
            if(pro.size()!=0){
                recordlist = new list<productwrapper>();
            }
            for(product2 p:pro){
                recordlist.add(new productwrapper(p));
            }
            
            selectedstatus = 'active';
            
        }
        
        public list<selectoption> getStatus(){
            status = new list<selectoption>();
            status.add(new selectoption('active','Active'));
            status.add(new selectoption('inactive','In-Active'));
            return status;
        }
        
        public void changestatus(){
            list<product2> prolist = new list<product2>();
            for(productwrapper pw: recordlist){
                if(pw.selected){
                    if(selectedstatus == 'active'){
                        pw.record.isactive = true;
                    }else if(selectedstatus == 'inactive'){
                        pw.record.isactive = false;
                    }
                    pw.selected=false;
                    prolist.add(pw.record);
                }
            }
            update prolist;
        }
        
        public class productwrapper{
            public boolean selected { get; set;}
            public product2 record  { get; set;}
            public productwrapper(product2 record){
                this.record = record;
                selected = false;
            }
        }
    }
    

     

  • Aditya

    Member
    January 23, 2020 at 1:40 pm in reply to: How to call controller class method through Trigger?

    By using the following code, we can call controller class method:

    public class MyFirstClass{
    
       public void doOperation1(){
         // Enter statement here
       }
     
      public static void doOperation2(){
          //Enter statement here
      }
    
    }

     

     

  • Aditya

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

    It is basically a string which represent the five or six fields which is separated by using white space over the set of time interval. By using the SchedulableContext object to keep track of the scheduled job once it's scheduled

  • Aditya

    Member
    January 22, 2020 at 3:41 pm in reply to: Why allOrNone parameter is used in Salesforce?

    allOrNone parameter is used to permit whenever a Database Method is partial success  and it include a Boolean Values.

    if return true, an exception is thrown which means method is failed.

  • Aditya

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

    Action Polar:

    It send the request to server and refresh the page on AJAX call on give time

    Rerendered:

    It is to refresh the page partially according to given condition.

  • Aditya

    Member
    January 21, 2020 at 3:32 pm in reply to: Batch Class as a Controller In Salesforce.

    Yes.  Your Visualforce page will either a custom controller or an extension class.

  • Action Support:

    As the name indicates action support is used to provide the support to the input field where we can not get event either manually or external event. It adds the AJAX request to VF page and then Calls the Controller method.

    Action Polar:

    As the name indicates action support is used to provide the support to the input field where we can not get event either manually or external event. It adds the AJAX request to VF page and then Calls the Controller method.

  • Standard Controller:

    Standard controller in apex, inherits all the standard object properties and standard button functionality directly.
    It contain the same functionality and logic that are used for standard Salesforce pages.
    It Can be used with standard objects and custom objects.
    It can be extended to implement custom functionality using extensions keyword.
    It provides a save method to allow you to persist changes.
    You’d use this when you have a singe object to manipulate.

    Custom Controller:

    It is an Apex class that implements all of the logic for a page without leveraging a standard controller.
    Custom Controllers are associated with Visualforce pages through the controller attribute.
    Custom controller defines its own functionality.
    Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.

  • Aditya

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

    Firstly, Bucket field is used in report not in salesforce

    It is used for catogariesed  the record without using formula according to user needs

  • Try this.......... By using BackSlash  ''

    public class ContactSearch {

    public static list<contact> searchForContacts(string lastname ,string mailingCode)
    {
    String query = 'select id, name from contact where lastname ='' +lastname+ '' and MailingPostalCode = ''+mailingCode+''';
    Contact[] myContacts = Database.query(query);
    system.debug(myContacts);
    return myContacts;

    }

    }

  • Aditya

    Member
    January 20, 2020 at 2:07 pm in reply to: What is generic sObject means in Salesforce?

    sObject is a generic abstract type that corresponds to any persisted object type. The generic sObject can be cast into a specific sObject type, such as an account or the Invoice_Statement__c custom object.

  • Aditya

    Member
    January 16, 2020 at 3:17 pm in reply to: What can cause data loss in Salesforce?

    Data loss may cause due to following reasons:
    Changing data and date-time.
    Altering  to percent, number and currency from other data types.
    Changing from multi-select picklist, checkbox, auto number to other types.
    Altering to multi-select picklist from any type except picklist.
    Changing to auto-number except from text.

Page 19 of 20