Merge multiple fields into one

Merge multiple fields into one

The below script updates a string field Details but only with information of 1 record even tough its a for each record script. How could i place all records information into Detalis field?

for each EOS in EOS_Report_Form  [LTE_Site_ID == input.LTE_Site_ID] sort by  Date_field desc
{
    TN  =  Tech_Names  [ID == EOS.Technician_Name];
    S  =  ALU_Items  [ID == EOS.Scope];
    if (EOS.Site_Completed1  ==  "Yes")
    {
        show Details;
        input.Details = "Technician Name:" + " " + TN.Name + " " + "Date Completed:" + " " + EOS.Date_field + " " + "Scope of Work Completed:" + " " + S.ALU_Item_Name;
    }
   
}