Here is the Image of Google sheet it still keep updating the same row but i want to append the data one by one enter image description here
def AddEventReasonRecord(self, EventReasonList):
try:
GlobalObj = Global()
records = []
rows = len(EventReasonList)
sheet_tile = self.GoogleSheetTitle()
ItemRow = int(GlobalObj.LasItemRow)
if rows > 0:
for index in range(rows):
ItemRow = ItemRow + 1
sheet_row = ItemRow + 1
Obj: EventReason = EventReasonList[index]
records.append(Cell(sheet_row, 1, Obj.EventID))
records.append(Cell(sheet_row, 2, Obj.EventName))
records.append(Cell(sheet_row, 3, Obj.Description))
records.append(Cell(sheet_row, 4, Obj.Status))
records.append(Cell(sheet_row, 5, Obj.Event))
records.append(Cell(sheet_row, 6, Obj.EmpStatus))
records.append(Cell(sheet_row, 7, Obj.Position))
records.append(Cell(sheet_row, 8, Obj.PayrollEvent))
records.append(Cell(sheet_row, 9, Obj.JobPortlet))
sheet_tile.update_cells(records)
[![enter code here][1]][1]