input.Student_List.clear();
fetchStudents = Add_a_Class[ID == input.Class_Name].Students;
rows = Collection();
for each stud in fetchStudents
{
row = Mark_Class_Roll.Student_List();
row.Photo=stud.Photo;
row.Student=stud;
row.Status="Present";
row.Notification="-";
row.Reason="-";
row.Date_field1=input.Date_field;
row.Classes=input.Class_Name;
rows.insert(row);
}
input.Student_List.insert(rows);