Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
760770dc
Commit
760770dc
authored
Sep 22, 2023
by
Evan W. Patton
Committed by
Susan Rati Lane
Oct 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to gviz export API for Spreadsheet
Change-Id: I3639beab90e3ada6d3b22df5e370865408d7ea02
parent
8de910ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
appinventor/components/src/com/google/appinventor/components/runtime/Spreadsheet.java
...om/google/appinventor/components/runtime/Spreadsheet.java
+2
-2
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/Spreadsheet.java
View file @
760770dc
...
...
@@ -1806,7 +1806,7 @@ public class Spreadsheet extends AndroidNonvisibleComponent implements Component
// Cleans the formatted url in case the sheetname needs to be cleaned
String
cleanRangeReference
=
""
;
try
{
cleanRangeReference
=
URLEncoder
.
encode
(
sheetName
+
"!"
,
"UTF-8"
);
cleanRangeReference
=
URLEncoder
.
encode
(
sheetName
,
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
ErrorOccurred
(
"ReadRange: Error occurred encoding the query. UTF-8 is unsupported?"
);
return
;
...
...
@@ -1814,7 +1814,7 @@ public class Spreadsheet extends AndroidNonvisibleComponent implements Component
// Formats the data into the URL to read the range
String
getUrl
=
String
.
format
(
"https://docs.google.com/spreadsheets/d/%s/
export?format=
csv&sheet=%s"
,
"https://docs.google.com/spreadsheets/d/%s/
gviz/tq?tqx=out:
csv&sheet=%s"
,
spreadsheetID
,
cleanRangeReference
);
// Make the HTTP Request
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment