Ich habe ein Dashboard ähnlich dem Beispiel in Google Apps Script Help Center erstellt. Es enthält Steuerelemente, die das Arbeitsblatt filtern, das die Daten enthält. Ich möchte eine Option im Dashboard hinzufügen, die es den Benutzern ermöglicht, die gefilterte Ansicht in eine neue CSV-Datei oder eine Google Sheets-Datei zu exportieren, die in der Google Drive-Datei gespeichert werden. Ich habe jedoch keine Ahnung, wie das geht. Irgendwelche Vorschläge?Google Apps Script: Dashboard in CSV exportieren
0
A
Antwort
0
Hier ist ein Code-Snippet von Google Tutorial:
function saveAsCSV() {
// Prompts the user for the file name
var fileName = Browser.inputBox("Save CSV file as (e.g. myCSVFile):");
// Check that the file name entered wasn't empty
if (fileName.length !== 0) {
// Add the ".csv" extension to the file name
fileName = fileName + ".csv";
// Convert the range data to CSV format
var csvFile = convertRangeToCsvFile_(fileName);
// Create a file in the Docs List with the given name and the CSV data
DocsList.createFile(fileName, csvFile);
}
else {
Browser.msgBox("Error: Please enter a CSV file name.");
}
}*
Ansicht der full tutorial and code here.
Verwandte Themen
- 1. Einzelblatt zu PDF in Apps Script exportieren
- 2. Google Apps-Skript-Quota-Dashboard?
- 3. Gibt es Versprechen für Google Apps Script?
- 4. Google Apps Script-Tabelle Datumsmanipulation
- 5. Google Apps Script IP-Adresse
- 6. Analysieren mehrdimensionaler Arrays in Google-Blatt durch Google Apps Script
- 7. Zugangsparameter in einem XMLHttpRequest Google Apps Script
- 8. Inhalt in Google Apps Script-Dokumentendienst löschen
- 9. Google Tabellen: Exportieren nach TSV
- 10. Google Apps Script: Alternative zu Skripteigenschaften
- 11. Dienst zu oft aufgerufen (Google Apps Script)
- 12. Google Apps Script IFRAME-Migration in Google Spreadsheet funktioniert nicht
- 13. Löschen von Zeilen in Google Tabellen mit Google Apps Script
- 14. Google Apps Script und externe API
- 15. Google Apps Script Javascript Standard Unterstützung
- 16. Scrollbares benutzerdefiniertes Menü mit Google Apps Script
- 17. Google Apps Script Tabellenkalkulations-Umbenennungs Fehler
- 18. Google Apps Script-Funktion nicht gefunden: doGet
- 19. Google Apps Script legt keinen Zellenwert fest
- 20. Import von externem Javascript Google Apps Script
- 21. Automatisch Google Apps Script UI öffnen
- 22. Google Apps Script per E-Mail auslösen
- 23. Google Apps Script- Trigger-driven Zeit
- 24. Telegram API mit Google Apps Script
- 25. Google Apps Script Anmeldung auf der Website mit HTTP-Anfrage
- 26. google-apps-script Google-Tabelle Benutzerdefinierte Funktion Permission Workaround
- 27. Mitglied zu Google Groups hinzufügen mit Google Apps Script
- 28. Google Apps Script zum Löschen aller Dateien von Google Drive?
- 29. Bild in CSV exportieren
- 30. IFRAME- und NATIVE-Modus in Google Apps Script