This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component controller="Covid19_IND_TrackerController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<aura:attribute name="total" type="String"/> | |
<aura:attribute name="confirmed" type="String"/> | |
<aura:attribute name="active" type="String"/> | |
<aura:attribute name="recovered" type="String"/> | |
<aura:attribute name="deaths" type="String"/> | |
<!-- attributes --> | |
<aura:attribute name="sortDirection" type="String" default="asc" /> | |
<aura:attribute name="defaultSortDirection" type="String" default="asc" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LightningMapCntrl { | |
@AuraEnabled | |
public static List<Account> fetchAllAccounts(){ | |
List<Account> accList = [Select Id,Name,Website,BillingCity,BillingStreet,BillingPostalCode,BillingState,BillingCountry from Account ]; | |
return accList; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.THIS #container{ | |
border: 1px solid rgb(221, 219, 218); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
loadMap : function(component,event,helper,account) { | |
var mapsArray = []; | |
for(let index=0; index < account.length; index++){ | |
var Mobj = { | |
location: { | |
Street: account[index].BillingStreet, | |
City: account[index].BillingCity, | |
PostalCode: account[index].BillingPostalCode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(component, event, helper) { | |
let action = component.get("c.fetchAllAccounts"); | |
action.setCallback(this,function(response){ | |
let state = response.getState(); | |
if(state =='SUCCESS'){ | |
let result = response.getReturnValue(); | |
console.log('Result returned: ' +JSON.stringify(result)); | |
component.set("v.accObj",result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component controller="LightningMapCntrl" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" > | |
<!-- aura attributes --> | |
<aura:attribute name="mapMarkers" type="Object"/> | |
<aura:attribute name="centerObj" type="Object" /> | |
<aura:attribute name="zoomLevel" type="Integer" /> | |
<aura:attribute name="markersTitle" type="String" /> | |
<aura:attribute name="showFooter" type="Boolean" /> | |
<aura:attribute name="recordId" type="string"/> | |
<aura:attribute name="accObj" type="Account[]"/> | |
<!-- Init handlers--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.THIS #overview{ | |
word-wrap: break-word; | |
white-space: pre-wrap; | |
} | |
.THIS #Addresses{ | |
word-wrap: break-word; | |
white-space: inherit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FullContactAccountDetailsContrl { | |
@AuraEnabled | |
public static string getAccountDetails(string rec_id){ | |
String msg = ''; | |
try{ | |
Account acc=[select Website from account where id=:rec_id ]; | |
system.debug('domain : '+ acc.Website); | |
if(acc.Website != null && acc.Website != ''){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
fetchCompanyProfile : function(component,event,helper) { | |
var action=component.get("c.getAccountDetails"); | |
action.setParams({ | |
"rec_id": component.get("v.recordId") | |
}); | |
action.setCallback(this, function(response) { | |
var state = response.getState(); | |
if (state === "SUCCESS") { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(component, event, helper) { | |
helper.fetchCompanyProfile(component,event,helper); | |
} | |
}) |