Those header arrayformulas are things of beauty!
They are good work arounds if I can't insert formulas with blocks.
They are very powerful!
Thanks!
Those header arrayformulas are things of beauty!
They are good work arounds if I can't insert formulas with blocks.
They are very powerful!
Thanks!
@TIMAI2 @ABG and others, have you seen good use cases that might help @Tommy_Heng scope the work. We need to be careful that the blocks mainly support the use cases people might have for education purposes without going overboard in terms of complexity. There will always be people that want to push the bounds of what the component can do, but they're likely the 1% (if that) of App Inventor users.
In order of number of requests:
After that, most requests are about grabbing FileIDs after uploading files, posting to a sheet, which can then be downloaded for accessing those files in the app.
Very good news, thank you so much.
By the way, using sql query to import csv sheet, i notice that spaces in a cell are not in the final result. Will this problem be solved in this new component?
I am still whacking away at my small Pizza Store sample, settling on collecting orders, order items, and fulfillment of the order items.
My sample is transactional, with orders and order item sheets meant to be periodically (daily/weekly) flushed.
I have given up on trying to insert formulas, except for the critical =row() value, which I need for a primary key in master records and a foreign key in detail records.
I am using arrayFormula headers, which can be set up in separate read-only sheets to provide summaries of detail items for matching master rows. Those are mostly for the WebViewer crowd. Now that I am getting into the SQL-like query language, I can probably leave that out and instead use query based filtration, grouping, and summation.
For data-only sheets, there is a conflict between the desire to keep a header row and to be able to easily clear the data in that sheet (currently a sequence of clear column calls followed by replacement of the newly cleared header row.
How many minutes or hours are you thinking of for a target student project size?
I still have a doc at https://docs.google.com/document/d/1jEx4wJsvGLfsMAjvY5ft2gT8LpTuS2ceLICO3frJaU4/edit?usp=sharing for another Pizza based sample (Fusion Tables) with a single table data model, that could be adapted for Google Sheets.
Thank you! I see it now!
(Start of wild goose chase...)
Has anything changed with the Google Sheets component since yesterday?
I am getting this error in the sheets server's Companion trying to get a sheet ...
Edit: attached is the latest .aia file:
APizzaSheet.aia (19.9 KB)
and this is the block that first triggers the error:
On further study, I found this page at https://console.developers.google.com/apis/api/sheets.googleapis.com/credentials?folder=&organizationId=&project=apizzasheet
Did I miss something setting up my project?
(end of wild goose chase)
P.S. It was all me.
After I was all done soliciting help with arrayFormulas, I went to close off other users' edit capability to let me reshape the table structure. I set the Sharing option to Public With Link Can View, and forgot that it contradicted the initial setup instructions.
This error message went away after I reset the Public Sharing access to
I will have my demo error return event blocks check for 'oauth' in the error text, and issue a more useful error message pointing the developer to the public sharing settings.
This error pattern should probably go into the setup docs, in case other app authors make this mistake.
I apologize for the wild goose chase.
Les sauts de ligne ctrl+enter dans les cellules ne sont pas importés en sql query.
Ce problème sera-t-il résolu avec cette nouveautée?
I had not realized that this was an issue that could occur. Thanks for bringing this to my attention. I will definitly add this as a note in the Google Setup Docs.
I started to get strange errors from previously working code, working in the Companion on the sheets ai2 server:
This time, I did not change the sharing options of the sheets.
It worked a few hours ago, before dinner.
This is affecting all sheets blocks.
Unable to resolve host "oauth2.googleapis.com" is likely a problem with how Genymotion is talking to DNS (or rather, not talking). That's coming from further down the network stack and is telling us that the Android networking subsystem can't resolve the hostname, so it's not able to talk to DNS. From the browser in Genymotion are you able to access other Google services just fine (e.g., https://google.com?)
I tried using the native search box of my GenyMotion emulator reserved for Sheets testing, and I got an Internet connection error:
I had been using another GenyMotion emulator for ai2-test Companion testing earlier yesterday (AND/OR socket manipulation), and so this might indeed be a GenyMotion problem.
Thanks for the lead!
The problem was transient. I was able to Google search natively from other GenyMotion instances, then my sheets testing emulator miraculously regained its Internet access, restoring sheets block capabilities.
My current guess is that I had rushed some Genymotion network setup/teardown activity when switching emulators.
I'll file this under "remember for the future".
Thanks again.
I finished the code for my sample Sheets app, a Pizza Shop.
It turned out to be more than I bargained for, in scope.
Here's the source, and some screen shots ...
APizzaSheet.aia (37.7 KB)
Initial order entry requires a name, and logs the time.
A List Picker lets you pick from the Menu, without duplication.
An Item level Add button completes the Add operation.
A parallel set of ListViews provides access to Order Items, at the Order level and at the Unfilled category level:
3 posts were split to a new topic: Google sheets: You do not have permission to access the requested document
This looks flippin' amazin' !
Is it ready yet?
Everything worked really well until I used "saved as" to generate a newer version. Now I'm getting "method" errors on original and new versions....?
More specifically: Runtime error.
Error from companion: invoke: no method named 'Application name' in class com.google.....GoogleSheets.
no, it is not, it is under development
and therefore you have to expect errors...
feel free to test...
but for production you should wait, until a stable version is released in production
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
The sheets test server also has its own Companion version.
You will get errors like this if you use the wrong Companion.