We’re rewarding the question askers & reputations are being recalculated! Read more.
2

You use the Element click method. Here's an example: var a = document.createElement('a'); a.href = 'some file url'; a.click(); Note that browsers will typically block this type of script unless the user clicks a button. You might not be able get a "mass downloader" working in any modern browser because of this restriction.


2

In JavaScript, you can simply write: var selectedRecordIds = allRecords.filter(row=>row.Checked).map(record=>record.Account.Id); There might be something else going on, as JavaScript should require only a small fraction of a second on a modern computer to complete this task. I just tested this in a script on my browser: var x = []; while(x....


1

# is for 1 time binding, only the value passed/assigned before UI renders will be shown in UI and any further changes will not reflect in UI, so, it is recommended to use ! if you want to reflect the changes dynamically. Also you should use v. in component. Below change in soqlField component should work: <aura:if isTrue="{!v.field.fieldType == 'url'}"&...


1

Maybe you can try assigning default values to these attributes during onInit method handler


1

I was going to suggest column type url, but since this behaviour isn't wanted you can use lightning:navigation and see if you can format your columns with this behavior. ({ handleClick: function(cmp, event, helper) { var navService = cmp.find("navService"); // Uses the pageReference definition in the init handler var ...


1

There is no direct support for this but you can use Lightning Design System to create this component. You need to use slds-form-element and combine two base components lightning:input and lightning:buttonIcon to create the Inpute element with eye Icon. With the help of JS controller you can toggle the type of the Input element betwwen text and password. Also ...


1

When you use a function for a wire, but still want reactive behaviour against the result of that wire, you need to introduce a separate variable declaration, like: @track registro; @wire(getPagedContactList, { objectToDisplay: '$objToRender', nameSearchKey: '$nameSearchKey', maxNrRecords: '$maxf', pageSize: '$pageSize', pageNumber: '$...


1

The reason you're getting the error (which doesn't provide an answer to the real basis your question) is because of this: if(component.get("v.selectedLookUpRecord").Id != undefined){ conObj.AccountId = component.get("v.selectedLookUpRecord").Id; } Basically, it looks like component.get("v.selectedLookUpRecord") is returning a null and hence the error ...


1

To use Javascript and a lightning web component instead of aura you can use a dynamic class change variable for the section. <template> <div id="ExpandableCalendarSection" class={BookCalClass}> <h3 class="slds-section__title" style='padding-bottom:0;'> <button aria-controls="expandoBookingCalendar" aria-expanded="true" ...


Only top voted, non community-wiki answers of a minimum length are eligible