shariq
IndividualForum Replies Created
-
shariq
MemberSeptember 23, 2018 at 11:01 pm in reply to: Where we can display Salesforce lightning component?Lightning component can be displayed at following places:
1. Lightning Experience
2. Salesforce1 App
3. Template-based Community
4. Standalone Lightning App
5. Visualforce Pages (Using Lightning out ) -
shariq
MemberSeptember 23, 2018 at 11:01 pm in reply to: What happens with existing Visualforce Pages in Salesforce Lightning Experience?Most of the Visualforce page can be easily converted to lightning experience, but they are still supported by the salesforce and are not required to be converted
-
shariq
MemberSeptember 23, 2018 at 11:00 pm in reply to: Can we include external JavaScript/CSS libraries in Salesforce Components?It is possible to use custom CSS and JAvascriipt in the Lightning component
-
shariq
MemberSeptember 23, 2018 at 10:58 pm in reply to: Are there any CSS (styles) provided by salesforce as part of the supported Lightning Components?Salesforce has provided lightning design system as the default css to be used with Lightning component.
-
shariq
MemberSeptember 23, 2018 at 10:52 pm in reply to: What is aura:method tag in Salesforce Lightning?aura:method is used to communicate down the containment hierarchy i.e. parent to child
-
shariq
MemberSeptember 23, 2018 at 10:51 pm in reply to: Can I make one component inherit styles/CSS from a parent component, or always define it in the Salesforce Component?Child component inherits the CSS from its aren’t we do not need to specify it for each component
-
shariq
MemberSeptember 23, 2018 at 10:50 pm in reply to: Is Salesforce Lightning Component Framework an MVC Framework?No it is not a MVC framework it is a component based framework and event driven.
-
shariq
MemberSeptember 23, 2018 at 10:49 pm in reply to: Can we make a Salesforce Lightning Component that shows up in both mobile and desktop user interface?Lightning component is lightning experience ready by default and is also compatible in Salesforce1 App, it has a responsive layout therefore it adjust its resolution according the screen size and therefore can be used on desktop as well without writing any separate code.
-
shariq
MemberSeptember 23, 2018 at 10:46 pm in reply to: How can we call child component controller method from parent component controller method in Salesforce?To call a child component’s controller method, we need to first create a aura:method which is publically accessible, aura:method is used to communicate down the containment hierarchy i.e. parent to child. Sample code for implementing the aura method:
Component codeController
({
publicmethod: function(cmp, event) {
var params = event.getParam(‘arguments’);
if (params) {
var message = params. str;
console.log(“message: ” + message);
return message;
}
}
})Calling the cild method from parent controller
({
callchildCompMethod : function(component, event, helper) {
var childCmp = component.find(“childCompName”);
var Result =
childCmp. publicmethod (“message sent by parent component”);
console.log(“Result: ” + Result);
}
}) -
shariq
MemberSeptember 23, 2018 at 10:45 pm in reply to: How can we use a lightning component in a Salesforce VisualForce Page?A Lightning component can be embed in any webpage using a very powerful and flexible feature, Lighting out. When used with Visualforce some complexity becomes simpler.
Lightning component can be added to Visualforce page in three steps:1. We have to first Add the Lightning Components for Visualforce JavaScript library to your targetted Visualforce page using the tag.
2. Next we have to create and refer a Lightning app which is used to the component dependencies.
3. Lastly we need to write a JavaScript function which will finally create the the component on the page using $Lightning.createComponent()
-
shariq
MemberSeptember 23, 2018 at 10:44 pm in reply to: Which interface is to be implemented so that a Salesforce Lightning Component can be used as a Tab?We need to implement the following “force:appHostable” so that we can use the component as a Tab
-
shariq
MemberSeptember 23, 2018 at 10:43 pm in reply to: When should we use Component event and application events?It is best to always use a component event instead of an application event. Component events can only be handled by components above them in the containment hierarchy, therefore, their usage is localized to the components that need to know about them.
Application events are best used for something that should be handled at the application level, such as navigating to a specific record. Application events allow communication between components that are in separate parts of the application and have no direct containment relationship.
-
shariq
MemberSeptember 23, 2018 at 10:42 pm in reply to: What are the basic differences between Application Event and Component Event in Salesforce?Component events are used to do communication between child and parent. They use bubbling and capture same as used in DOM events. A change in a child component can be communicated to the parent component via component event.
Application events are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified.
To use Component Event API we use the below syntax -
Matrix reports is salesforce are those where the data is arranged in grid format having rows and columns. Data is arranged vertically and horizontally in tables like excel format.
-
Tabular reports in salesforce are those where the data is displayed in the form of list. In Tabular reports custom data is arranged with out subtotals.
-
shariq
MemberSeptember 23, 2018 at 9:39 am in reply to: In Master-Detail relationship, on Update of Master record can we update the Child record using Salesforce Workflow Rule?It is not possible using workflow , you can use trigger
-
shariq
MemberSeptember 23, 2018 at 9:34 am in reply to: Is it possible to create Roll up summary field on parent object in Salesforce?You can't create roll up on detail object
-
shariq
MemberSeptember 23, 2018 at 9:12 am in reply to: Is it possible to create Roll up summary field on parent object in Salesforce?Yes, we can create Roll up Summary field on parent object only with master detail relation between objects.
-
shariq
MemberSeptember 23, 2018 at 9:11 am in reply to: Is it possible to edit Roll up summary field value in a Salesforce Record?N0. roll up summary fields are read only fields and they can not be edited.
Roll up is created on master object -
shariq
MemberSeptember 23, 2018 at 9:11 am in reply to: Can we have Roll up Summary fields in Salesforce Parent-Child Relationships?No.
-
shariq
MemberSeptember 23, 2018 at 9:10 am in reply to: What is Many-Many Relationship in Salesforce ?Many-Many Relationships between two objects can be created.
Junction Object is used to create Many-Many Relationship.
Junction object can also be called as Join Object.
Junction Object links each objects in Many-Many Relationship. -
shariq
MemberSeptember 23, 2018 at 9:10 am in reply to: List out the functions of Roll-up Summary field in Salesforce.Count : It calculates the total number of related records.
Sum : It totals the values of selected fields.
Min : Displays lowest value.
Max : Displays the highest value. -
shariq
MemberSeptember 23, 2018 at 9:09 am in reply to: Define the various characters of Roll-up Summary Field in Salesforce?Roll-Up Summary field can be created only in a object which is referred as a object with a master detailed relationship field.
Roll-Up Summary field can only created for Master-detail Relationship.
Roll-Up Summary field can not be created for Look-up Relationship.
It Derives the data from child Object.
We can’t change field type of a field that we reference in a roll-up summary field.
Auto numbers are not available here.
Roll-Up Summary fields are not available for mapping lead fields of converted fields. -
Roll-Up Summary field in salesforce calculates values from a set of related records.
You can count or sum the the field value of detail object -
shariq
MemberSeptember 23, 2018 at 9:06 am in reply to: What are the different types of Relationships in salesforce.com? What are they?They are four types of Relationships in Salesforce.com. They are
Master-Detail relationship.
Look-up Relationship.
May-Many Relationship.
Hierarchy Relationship (we can not use this relationship).