In all other functions you are calling perfectly the ss with param id but in the create alome you are using get active sheet. Why dont you use there also the sheet id?
May be try this code
else if (e.parameter.func == "STWORZ") {
var ss = SpreadsheetApp.openById(e.parameter.ID); // Open by ID
var sh = ss.getSheetByName(e.parameter.SH); // Or use getSheets()[0] if appropriate
var data = [e.parameter.id, e.parameter.jeden, e.parameter.dwa, e.parameter.trzy, e.parameter.cztery, e.parameter.piec];
sh.appendRow(data);
return ContentService.createTextOutput("Success");
}
Also add error alert to know actual error message to know your problem also i have changed the structure of your data too. Append function will expects data as single array. So test the above code and ket us know whether it is working or not
I believe you are using listview, set fixed height. When user scrolls the list it keeps the buttons in the same place
(As default the listview height was set with automatic height)
Hi, I have another problem... If the ID is on the list, I don't want it to create it in the sheet, but to throw away the information about its existence and entering a non-existent ID.
No, I want to create another record, but if there is already one on the sheet, it should not create another one, but display a message that one already exists
You might have to redesign the way you store your data to resemble a bank transaction register, that only accepts new increment rows, and is set up to show balances from a separate summary sheet.