Hi,
Would anybody know if there is a way to copy a row of data to another table?
I would like to archive my data into another table by using behavior and creating action buttons to do this.
I don’t want to store old data on the main worksheet the app is reading and updating as I’m gathering on average, 80 rows of data per day and this can build up and will more than likely slow my app down.
Any suggestions?
Thanks in advance,
Chris.
One workaround is if you create a scheduled report with a “Save file” option. With that option you can at least copy your old data to your account day by day.
The scheduled report could copy the old rows from the main table to the backup table and then delete the rows from the main table. This assumes that you have some way to identify the rows to be moved and deleted. The scheduled report could run daily, weekly, or monthly, depending on your needs.
@Phil, A Scheduled report can actually write values from one table to another table?
What setup achieves this? Do you pass a list of rows into a webhook and have something like Zapier append the new records to an existing document?
I believe the following could work:
I am looking for an archive feature that does not leave blank rows in the sheet, does this solution achieve this?
Hi @PeakPerformance,
The solution I went with was a webhook that moves rows on a certain trigger.
This does leave blank rows in my tables but I combat that by using a script within the table that at the moment is triggered manually but apparently we can use our apps now to trigger the scripts within the sheet.
The script I’m using is below, if you do manage to get it to work via appsheet please share.
/**
var rowsDeleted = 0;
for (var i = 0; i <= numRows - 1; i++) {
var row = values[i];
if (row[2] == 0 || row[2] == ‘’) {
sheet.deleteRow((parseInt(i)+1) - rowsDeleted);
rowsDeleted++;
}
}
};
/**
Good Luck,
Chris.
User | Count |
---|---|
41 | |
27 | |
27 | |
20 | |
13 |