Create new sheets within a spreadsheet #20
Replies: 2 comments 2 replies
-
The API supports for single spreadsheet creation. You should keep in mind the different between document and data. No cloud services provide such your requirement. |
Beta Was this translation helpful? Give feedback.
-
Ok I get your point, to create multiple sheets, you should read the documentation and try it because it can be complex. For example, you can try. FirebaseJson spreadsheet;
spreadsheet.set("properties/title", "spread sheet 1");
spreadsheet.set("sheets/[0]/properties/title", "Sheet1");
spreadsheet.set("sheets/[0]/properties/sheetId", 1);
spreadsheet.set("sheets/[0]/properties/sheetType", "GRID");
spreadsheet.set("sheets/[0]/properties/sheetType", "GRID");
spreadsheet.set("sheets/[0]/properties/gridProperties/rowCount", 20);
spreadsheet.set("sheets/[0]/properties/gridProperties/columnCount", 10);
spreadsheet.set("sheets/[0]/developerMetadata/[0]/metadataValue", "test_value");
spreadsheet.set("sheets/[0]/developerMetadata/[0]/metadataKey", "test_yey");
spreadsheet.set("sheets/[0]/developerMetadata/[0]/visibility", "DOCUMENT");
spreadsheet.set("sheets/[1]/properties/title", "Sheet2");
spreadsheet.set("sheets/[1]/properties/sheetId", 1);
spreadsheet.set("sheets/[1]/properties/sheetType", "GRID");
spreadsheet.set("sheets/[1]/properties/sheetType", "GRID");
spreadsheet.set("sheets/[1]/properties/gridProperties/rowCount", 20);
spreadsheet.set("sheets/[1]/properties/gridProperties/columnCount", 10);
spreadsheet.set("sheets/[1]/developerMetadata/[0]/metadataValue", "test_value");
spreadsheet.set("sheets/[1]/developerMetadata/[0]/metadataKey", "test_yey");
spreadsheet.set("sheets/[1]/developerMetadata/[0]/visibility", "DOCUMENT"); Library works as a REST API client, and you should read the Google documentation and try it yourself. |
Beta Was this translation helpful? Give feedback.
-
HI, can this library create new sheets within a spreadsheet? sheet1, sheet2, sheet3 etc..
I cant seem to find any info about creating them with this library. I need to be able to add multiple sheets remotely with default column names.
Beta Was this translation helpful? Give feedback.
All reactions