Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
App Inventor 2 Essentials

You're reading from  App Inventor 2 Essentials

Product type Book
Published in Apr 2016
Publisher
ISBN-13 9781785281105
Pages 248 pages
Edition 1st Edition
Languages

Coding the blocks – requesting data


The first code that we need to program is to request data from the Fusion Table. Click on GuestList_Screen in the Blocks drawer and drag the when GuestList_Screen.Initialize event. This event is automatically triggered whenever a screen is launched. We want to request data from the Fusion Table when the GuestList screen is launched. Thus, we will add to this event is the call FusiontablesControl1.GetRows block. This block will let us request data from the Fusion Table. You can find this block in the FusiontablesControl1 blocks drawer. The GetRows block needs two pieces of information to fetch rows from Fusion Tables: the ID of the table and name of the column. We identified the table ID when we were creating the Fusion Table. Paste that ID into the tableId socket of the GetRows block using a Text block. Use another Text block to specify the column name, 'Guest Names'. Note the single quotes; just like in the InsertRows block, the column names have to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}