You need to sign in to do that
Don't have an account?
ForceRookie
How to save list of records in Custom Settings through Aura Controller
Help me to upsert records to Custom Settings (List)
<aura:attribute name="myCustSettings" type="myCustomSettings__c[]"/> <table class="slds-table slds-table--bordered slds-table--cell-buffer slds-table--striped slds-max-medium-table--stacked-horizontal" role="grid"> <thead> <tr> <th class="slds-is-sortable slds-cell-wrap" scope="col"> Object </th> <th class="slds-is-sortable slds-cell-wrap" scope="col"> Field </th> <th class="slds-is-sortable slds-cell-wrap" scope="col"> Value </th> <th class="slds-is-sortable slds-cell-wrap" scope="col"></th> </tr> </thead> <tbody> <aura:iteration items="{!v.myCustSettings}" var="obj" indexVar="index"> <tr class="slds-hint-parent"> <td role="gridcell" data-label="Object"> <div data-label="Object"> <lightning:combobox type="text" aura:id="object" name="object" placeholder="-Select-" value="{!obj.Object__c}" options="{!v.objectList}" onchange="{!c.handleObjChange}"/> </div> </td> <td role="gridcell" data-label="Field"> <div data-label="Field"> <lightning:combobox aura:id="field" name="field" placeholder="-Select-" value="{!obj.Field__c}" options="{!v.fieldList}" onchange="{!c.handleFldChange}"/> </div> </td> <td role="gridcell" data-label="Value"> <div data-label="Value"> <lightning:input type="text" aura:id="value" name="value" placeholder="Type here" placeholder="Type here" value="{!obj.Value__c}"/> </div> </td> <td> <a onclick="{!c.removeRow}" data-record="{!index}"> <lightning:icon iconName="utility:delete" size="small" alternativeText="Delete"/> <span class="slds-assistive-text">Delete</span> </a> </td> </tr> <!--/aura:iteration--> </tbody> </table> <div class="slds-grid" style="margin-bottom:15px;margin-top: 30px;text-align:center;"> <lightning:button aura:id="add" label="+ Add another row" class="slds-m-top--medium" variant="brand" onclick="{!c.btnAdd}"/> </div>
https://salesforce.stackexchange.com/questions/148095/how-to-insert-list-custom-setting-entry-from-a-lightning-component
https://www.forcetalks.com/blog/using-custom-settings-in-salesforce/
http://www.vinaychaturvedi.com/blog/display-and-select-list-of-records-using-wrapper-class-in-lightning-component/
https://medium.com/@amster/building-a-real-time-filtered-list-with-custom-lightning-components-c33c82a07549
https://www.jitendrazaa.com/blog/salesforce/lightning-data-services-standard-controller-for-lightning-components/
Hi Raj, thanks for the reply but I already solved it yesterday.
Ahm, will you answer my new question here? -- https://developer.salesforce.com/forums?id=9062I000000IHvDQAW