+ Start a Discussion
Srujana D 7Srujana D 7 

I am structed in Calling Multiple button actions with same Id from Other button action, Is this Possible in lightning

Parent.cmp:
<table class="slds-table slds-table-bordered slds-table-striped slds-table-cell-buffer slds-table-fixed-layout" >
            <thead>
                <tr class="slds-text-heading-label">
                    <th scope="col"><div class="slds-truncate" title="Name"><b>Student Name</b></div></th>
                    <th scope="col"><div class="slds-truncate" title="Attendance"><b>Attendance</b></div></th>
                    <th scope="col"><div class="slds-truncate" title="Name"><b>date</b></div></th>
                </tr>
            </thead>
            <aura:iteration items="{!v.student}" var="stu">
               <aura:if isTrue="{!(stu.namespace36__Class__c == v.clases)}">
                    <c:AttendanceScreenChild newAttendance="{!v.newAttendance}" student="{!stu}" />
                </aura:if> </aura:iteration>
           
            <br/><br/>
            
        </table>
        <br/><br/>
           <center>
            <lightning:button label="Save" variant="brand" onclick= "{!c.clickNew}"/> 
        </center>
AttendanceScreenChild.cmp:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" controller="AttendanceCntrl" >
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <aura:attribute name="newAttendance" type="Attendance__c" />
     <aura:attribute name="classes" type="string" />
    <aura:attribute name="student" type="Contact"/>
       <aura:registerEvent name="AttEvent" type="c:AttendanceEvent"/>
  
     <tbody>  
         <tr>
                            <td ><div class="slds-truncate" title="Student Name">
                                {!v.student.Name}<ui:outputText aura:id="button1" value="{!v.student.Id}" class="slds-hide" /></div></td>
                            <td><div >
                                <ui:inputCheckbox aura:id="checkbox"  value="{!v.newAttendance.attendances__c}" />
                                </div></td>
                            <td><div >
                                <lightning:input name="date" type="date" value="{!v.newAttendance.Date__c}" placeholder="dd/mm/yyyy" />
                                </div></td>
                            <td>
                           
            <lightning:button aura:id="submitButton" label="Submit" variant="brand" onclick= "{!c.doSomething}"/>
                            </td>
                        </tr> 
    </tbody>     
        
</aura:component>

My output view is
User-added image
Iam able to insert the individual record by clicking submit button,but i want to insert all records at a time by clicking save button.
can anyone Help me