Aditya
IndividualForum Replies Created
-
Hi Ayush,
Attribute is generally used as a variable in Salesforce Lightning Component to hold value/information
-
V refers for view a value of an attribute and C stands for controller that return a value by controller.
-
Aditya
MemberJanuary 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
MemberJanuary 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
-
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.
-
Aditya
MemberJanuary 28, 2020 at 3:59 pm in reply to: Does it is possible that two users have the same profile in Salesforce?Hi Ayush,
Yes, Two user have same profile but can access only one profile at a time.
-
Aditya
MemberJanuary 28, 2020 at 3:56 pm in reply to: How to access child records from parent and parent records from child in SOQL in Salesforce?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); -
Hi Udit,
Cascade Deleting is use to delete child record automatically when their parent is deleted
-
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
MemberJanuary 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.
-
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
MemberJanuary 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
MemberJanuary 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
MemberJanuary 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
MemberJanuary 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 } }
-
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
MemberJanuary 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
MemberJanuary 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.
-
Yes. Your Visualforce page will either a custom controller or an extension class.
-
Aditya
MemberJanuary 21, 2020 at 3:27 pm in reply to: What is the difference between <apex:actionSupport> and <apex:actionPoller> in Salesforce?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.
-
Aditya
MemberJanuary 21, 2020 at 3:24 pm in reply to: What is the difference between a standard and a custom controller in Salesforce Apex?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. -
Firstly, Bucket field is used in report not in salesforce
It is used for catogariesed the record without using formula according to user needs
-
Aditya
MemberJanuary 20, 2020 at 2:23 pm in reply to: How to resolve System in QueryException: unexpected token: ',' message in Salesforce?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;}
}
-
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.
-
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.