We are close but something is wrong somewhere. Here is an example that works!
SHEET
SCRIPT
function doGet(e) {
var ss = SpreadsheetApp.openById(e.parameter.ID);
var sh = ss.getSheetByName(e.parameter.SH);
var rg = sh.getDataRange().getValues();
var index = e.parameter.INDEX; //index in list
var col1 = e.parameter.COL1; // current/existing value of Col1
for (var i = 0; i < rg.length; i++ ) {
if ( index != undefined && i == index && col1 == rg[i][0] ) {
sh.deleteRow(parseInt(index)+1);
}
}
return ContentService.createTextOutput("Record deleted");
}
Sharing set as a minimuim to anyone with the link. Here I have set to allow anyone to edit so you can test and reset the sheet.
Press the Read button to return the list on the sheet, and display this in the listview
Select an item in the listview to delete the item on the sheet, and update the listview
Ho importato il tuo progetto nelle mie tabelle e funziona tutto.
L'ultimo problema rimasto è se all'interno di una cella ci sono due parole con uno spazio in mezzo il procedimento da errore e non elimina quella determinata riga.
Come possiamo risolvere?
Why the script can't work? The error is CSV file.
I downloaded the aia file and the script. I replace the new script link into "globalscriptURL" but I can't find where to paste the paste link of the spreadsheet.
If you placed the answer there it would make a mess of your dataset....you would add another row with just that data, that wouldn't correspond to the other records.
Can you store this on another sheet ?
Can you store this in the app ?
Yes, I can create another spreadsheet for only math operation with the same number of row. In this case function update recall row text into the spreadsheet posted up before. Is correct? How it made?
In case how can store in app?