The component is not using the ‘DisplayCaseController’ Apex controller
Use the below code: Controller Code: ({ getCase: function(cmp){ var action = cmp.get("c.getCaseFromId"); action.setCallback(this, function(response){ ....
Use the below code: Controller Code: ({ getCase: function(cmp){ var action = cmp.get("c.getCaseFromId"); action.setCallback(this, function(response){ ....
Use the below codes Component Code: <aura:component > <ui:inputNumber aura:id="InputOne"/> <ui:inputNumber aura:id="InputTwo"/> <ui:inputNumber aura:id="InputThree"/> <ui:outputNumber aura:id="totalValue"/> <aura:handler name="init" value="{!this}" action="{!c.calculate}"/> </aura:component> Controller ....
Use the below codes Component Code: <aura:component > <ui:inputNumber aura:id="InputOne"/> <ui:inputNumber aura:id="InputTwo"/> <ui:inputNumber aura:id="InputThree"/> <ui:outputNumber aura:id="totalValue"/> <aura:handler name="init" value="{!this}" action="{!c.calculate}"/> </aura:component> Controller ....
Use the below code Component Code: <aura:component> <aura:registerEvent name="message" type="c:PhoneNumberEvent"/> <aura:handler event="c:PhoneNumberEvent" action="{!c.answer}"/> <aura:attribute name="number" type="String" default="No Phone Number"/> <ui:outputText aura:id="phone" value="{!v.number}"/> ....
Use the below Controller Code: ({ send : function(component, event, helper) { var phone = component.find("phone").get("v.value"); console.log(phone); $A.get("event.c:PhoneNumberEvent").setParams({ ....
To auto populate Name field in Salesforce, follow the below steps 1. Create a Visuaforce page similar to this below code. Sample Visualforce page: <apex:page standardController="Employee__c" action="/a0A/e?RecordType={!$CurrentPage.parameters.RecordType}&Name=[Will+be+filled+automatically]&cancelURL={!$CurrentPage.parameters.retURL}&nooverride=1" /> Replace a0A with your object. To ....
1. Go to Apps. 2. Edit the App. 3. Select "Insert an Image". Note: For standard app, you cannot customize its label or logo.
Sample Code: <aura:component > <aura:attribute name="DayOfTheWeek" type="String" default="Monday" /> <aura:if isTrue="{!v.DayOfTheWeek == 'Monday'}"> Today is {!v.DayOfTheWeek} ....
Salesforce Lightning Aura Component makes use of aura:if and aura:set for expressions to hide and show the content. Please check the following code for reference. Sample Code: <aura:component > <aura:attribute ....
If Lightning Component Tabs Section missing in Salesforce, follow the below steps 1. Go to My Domain. 2. Click "Click here to login". 3. Click "Deploy to Users". Still if ....