Iteration of Child Lightning Component

I am building a lightning component for an app home page and want to render a list of records. I have created a parent component that iterates over a list of children components. The parent component loads on page load but the list child component won’t render within the parent component. I’ve checked my apex … Read more

Iteration of Child Lightning Component

I am building a lightning component for an app home page and want to render a list of records. I have created a parent component that iterates over a list of children components. The parent component loads on page load but the list child component won’t render within the parent component. I’ve checked my apex … Read more

Aura Iteration is returning 0 rows

I have a below lightning component Please ignore the commented lines <aura:attribute name=”serverResponse” type=”ReportsController.COABReportLineItem[]” /> <aura:handler name=”init” value=”{!this}” action=”{!c.doInit}”/> <article class=”slds-card”> <div class=”slds-card__header slds-grid”> <header class=”slds-media slds-media_center slds-has-flexi-truncate”> <div class=”slds-media__body”> <h2> <a class=”slds-card__header-link slds-truncate” title=”[object Object]”> <span class=”slds-text-heading_small”>Report Details</span> </a> </h2> </div> </header> </div> <div class=”slds-card__body slds-card__body_inner”> <table class=”slds-table slds-table_bordered slds-table_cell-buffer”> <thead> <tr class=”slds-text-title_caps”> <th … Read more

lightning:input type=”date” not binding with my object

I’m currently creating a Lightning Component for a custom object in SalesForce, for some reason the data is not binding to this input. Even when I select a date from the date picker nothing shows up on the input field. I have read/write access to the field as I see it in a previous VF … Read more

For multi-file upload same file being uploaded twice

I am using the following to upload multiple files in Salesforce custom lightning component. http://sfdcmonkey.com/2017/09/25/file-upload-lightning-component I my component, I have the following code <lightning:input aura:id=”fileId” onchange=”{!c.handleUploadFinished}” type=”file” name=”file” label=”Upload Attachment” multiple=”true”/> In my JS controller I am using the following code uploadHelper : function(component, event, helper) { var fileInput = component.find(“fileId”).get(“v.files”); var input = component.get(“v.fileList”); … Read more

Import and use strike components

I’m new to salesforce development so this will be probably a very trivial question but I’m stuck here. I’m trying to import and use Strike lookup component So I have imported all the files in the needed folder and synched everything with my org. Now as far as I have understood, I should be able … Read more

Retrieve recordId and sObjectName from utility bar component

I’m trying to retrieve recordId and sObjectName from a component put on the utility bar. The point is it always retrieves me ‘undefined’ in both cases. <aura:component implements=”force:hasRecordId,force:hasSObjectName,flexipage:availableForAllPageTypes”/> Controller: doInit : function(component, event, helper) { console.log(component.get(“v.sObjectName”)); console.log(component.get(“v.recordId”)); } Is there something wrong with my code? Or it’s just that I can’t retrieve it from an … Read more

Visualforce with AJAX toolkit Migration to Lightning

I have a Visualforce page exposed as a Tab with heavy javascript and it uses AJAX toolkit. We are in the process migrating to Lighting Experience and this page seems working fine at high level in Lightning and it even uses GETSESSIONID for the AJAX calls. Have you noticed any issues with similar pages in … Read more

Lightning Data Service Change Boolean

I am having trouble with LDS trying to load a page with fields tied to checkbox values. I am trying to display the boolean values as radio buttons and everything is loading correctly. However, the problem is whenever a radio button is changed I get the message ‘Problem saving record, invalid data type’ despite trying … Read more

Use 2 different lightning:recordViewForm inside one SLDS Page Header

I want to show data from 2 different objects inside an SLDS Page Header For the page header I use <ul class=”slds-page-header__detail-row”> For the data – I use lightning:recordViewForm If I get data from one object – all looks and works well : <lightning:recordViewForm recordId=”a1IW0000001CGSbMAO” objectApiName=”Budget__c”> <ul class=”slds-page-header__detail-row”> <li class=”slds-page-header__detail-block”> <lightning:outputField fieldName=”Id” /> </li> <li … Read more