Skip to content

Instantly share code, notes, and snippets.

binaryLady / FetchDataApexController.cls
Created Oct 12, 2017
Apex class that returns a handled error for Lightning Components
View FetchDataApexController.cls
public with sharing class FetchDataApexController {
public static List<sObject> getDataFromServer(List<String> acct){
List<sObject> sObjList = new List<sObject>();
String query = 'SELECT ';
query = query + 'Name, Id, customField__c FROM customObject__c ';
query = query + 'WHERE Id IN: acct ';
query = query + ' ORDER BY CreatedOn__c DESC';
binaryLady / DynamicInputField.cmp
Last active Aug 28, 2017
Dynamic Input Field Lightning Component
View DynamicInputField.cmp
<aura:component >
<aura:attribute name="name" type="String" default=""/>
<aura:attribute name="dynamicSetting" type="String" default="" />
You can’t perform that action at this time.