How to find 9th Character from a string using JAVASCRIPT?
Sample Code: var value = '11111111911; String s = value.charAt(8); //return 9 Note: Index starts at 0. Cheers!!!
Sample Code: var value = '11111111911; String s = value.charAt(8); //return 9 Note: Index starts at 0. Cheers!!!
Check the debug log. If the DML operation is failed, we get "Undefined" error. Cheers!!!
Sample Code: <aura:attribute name="SampleName" type="NameSpacePrefix__ObjectAPIName" default="{ 'sobjectType':'NameSpacePrefix__ObjectAPIName', 'Name':'', 'NameSpacePrefix__FieldAPIName': 0, 'NameSpacePrefix__FieldAPIName':'', }"/> Cheers!!!
Sample Code: ({ storeTest : function(component, event, helper) { }, getTest : function(cmp, event) { // }, getTest1 : function(cmp, event) { ....
Add implements="flexipage:availableForAllPageTypes" access="global" to the aura:component tag to use Lightning Component in Lightning Builder. Cheers!!!
Sample code: String recordTyp = ApexPages.currentPage().getParameters().get('RecordType'); if ( String.isNotBlank(recordTyp) ) p.getParameters().put('RecordType',recordTyp); Cheers!!!
Sample Code: Component: <aura:component > <ui:inputNumber label="Contract No " aura:Id="contractNo" blur="{!c.validateContractNo}"/> </aura:component> Controller: ({ validateContractNo : function(component, event, helper) { var inputCmp = component.find("contractNo"); var value = inputCmp.get("v.value"); ....
The attribute should be label. It should not be Label. Make the attribute names in small letters. Don't capitalize the first character. Cheers!!!
Sample Code: <aura:application > <c:ContractNumber/> </aura:application> here ContractNumber is the name of the Lightning Component. Cheers!!!
Syntax: https://instance.lightning.force.com/NameSpacePrefix/AppName.app Sample URL: https://infallibletech-dev-ed.lightning.force.com/InfallibleTech/MyLightningApp.app