Salesforce Apex

Salesforce

aura:iteration example in Salesforce Lightning Component

Sample App: <aura:application extends="force:slds"> <c:AccountList /> </aura:application> Lightning Aura Component: AccountList.cmp: <aura:component controller="AccountListController"> <aura:attribute type="Account[]" name="acctList"/> <aura:handler name="init" value="{!this}" action="{!c.fetchAccounts}"/> <table class="slds-table slds-table_bordered slds-table_cell-buffer"> <thead> <tr class="slds-text-title_caps"> <th scope="col"> <div ....

Salesforce

Simple Outbound REST API with JSON Response using Apex in Salesforce

Remote Site Settings: Visualforce Page: <apex:page controller="RESTAPIJSONResponseController"> <apex:form> <apex:pageBlock> <apex:pageBlockButtons location="bottom"> <apex:commandButton value="Fetch" action="{!fetchAPI}"/> </apex:pageBlockButtons> </apex:pageBlock> <apex:pageblock> <apex:pageBlockSection> <apex:pageBlockTable value="{!listWrapper}" var="obj"> <apex:column value="{!obj.id}" headerValue="Id"/> <apex:column value="{!obj.login}" headerValue="Login"/> <apex:column value="{!obj.url}" headerValue="URL"/> ....