Using GoogleAppMaker how to create a data source from google contacts. There is an employee HR example app but I want to similarly manage contacts (add, modify, delete) and use select criteria.
相关问题
- AppMaker: environment variables per deployment ? G
- Why does my deployment have no data but my preview
- Is it possible to add values to table widget progr
- Appmaker Input Form, change options based on earli
- App Maker Document approval template : Add Default
相关文章
- Google App Maker - Creating a contract. Methods to
- Google App Maker - Add a button for timestamp coll
- Correct Usage Of Groups For Permissions
- Exporting data to google sheet
- How to make friendly custom URL for deployed app
- Example or template on how to do file upload in Go
- Document Merge with Google App Maker
- Connection from App Maker to Cloud SQL is locked
At this time this task is not trivial in App Maker and it is pretty much generic. We can change question wording to
CRUD operations with 3rd party datasources
. Let's break it into smaller parts and address them separately.Read/list contacts
This task is relatively easy. You need to use Calculated Model to proxy Apps Scripts Contacts API response. Once you create model with subset of fields from the Contact response you can create datasource for the model and bind it to List or Table widget. You can also try to find some inspiration in Calculated Model Sample.
Create/Update/Delete
Since Calculated Models have some limitations, we need to turn on our imagination to create, update and delete records from their datasources. The basic strategy will be calling server side scripts for CUD operations in response to user actions on client side. To get user's input from UI we will need to utilize page's Custom Properties, one property for each Contact field:
Here are some snippets that should explain the idea
Create
Update
Idea to update contact records will be very similar to the new contact creation flow, so I skip it for now.
Delete
Assuming that delete button is located inside contacts table row.