I am building the form where I have 1-n object structure. For a sake of simplicity lets say I have an Invoice__c Custom Object and Item__c. If its only Invoice__c, it would be
<lightning:recordEditForm aura:id="recordViewForm" objectApiName="Invoice__c"> <lightning:messages /> <!--Other fields here--> <lightning:inputField fieldName="InvoiceNumber__c" /> <lightning:inputField fieldName="InvoiceAmount__c" /> <lightning:button aura:id="submit" type="submit" label="Update record" class="slds-m-top_medium"/> </lightning:recordEditForm>
However, if I want to be able to have an iteration with multiple Items how would I do that? Am I missing something fundamentally about lightning:recordEditForm so it is suppose to work only with one object? And if yes, should I in this case totally abandon recordEditForm and inputField and use other options that are more manual approach?