google-app-maker

Display only Team Drives in Drive Picker Widget

走远了吗. 提交于 2019-12-01 10:52:35
问题 I am creating an application where I need to provide Drive Picker widget so that users can upload some files. Now I want to restrict users so that they can only select files from their "Team Drives" and not from anywhere else. I've tried adding method in onPickerInit event. Here's my function which is getting called in onPickerInit event, function fetchFolder(widget, pickerBuilder) { pickerBuilder.addView(new google.picker.DocsView() .setParent('TeamDriveId') .setIncludeFolders(true)); } This

How to create a rest api in app maker?

别来无恙 提交于 2019-12-01 09:58:21
问题 Is there a way to create a REST API in a server side script in app maker? I need to call a server side function from an iOS app passing some parameters and have a response without having to go to a page in the app. I know that for regular google apps script it’s possible trough the Execution API but I don’t know how to do it inside app maker. Thanks. 回答1: TL;DR You cannot use App Maker via Execution API at this time I tried to use App Script Execution API with App Maker and here are my

How Can I Filter Multiple Variables In A Table?

牧云@^-^@ 提交于 2019-12-01 01:47:20
How can I use the query/filter function to filter out two categories of the same field. Example which currently works to filter "Completed" task: var datasource = app.datasources.Project; datasource.query.filters.Status._notContains = 'Completed'; datasource.load(); But I would like to have it filter both "Completed" AND "Canceled" tasks. I tried these, but they didn't seem to work: Example 1 var datasource = app.datasources.Project; datasource.query.filters.Status._notContains = 'Completed'; datasource.query.filters.Status._notContains = 'Canceled'; datasource.load(); Example 2 var datasource

Export data from Google AppMaker Datasource automatically

孤人 提交于 2019-11-30 15:45:45
Does anyone know how we can generate report from data in datasource in Google AppMaker automatically ( e.g generate report at 12a.m. ) instead of manually click export data in deployments every time user need the report. I have seen something similar on Exporting data out of Google AppMaker but also no one tried to answer that. Really appreciate if there is anyone who know how to solve this :) This can be achieved by using Installable Triggers . Say for example, you have a model with students data that has three fields; name(string), age(number) and grade(number). On the server script you can

Example or template on how to do file upload in Google AppMaker

瘦欲@ 提交于 2019-11-29 18:02:30
can anyone share with me the .zip file for Document Approval template because I can't open it since I'm not using GCS but I wanted to go through how they using Drive Picker widget to upload file and so on. another thing is, where the file will be uploaded to? is it the owner's Drive? is it possible to upload the document to a single folder of a Team Drive instead? Really appreciate it if anyone can share with me some thoughts or any API will do, Thanks! The only way to upload files that App Maker provides out of the box is Drive Picker widget and by default it uploads files to current user's

Document Merge with Google App Maker

喜夏-厌秋 提交于 2019-11-29 08:59:01
I would like to integrate a document merge into a workflow which I created in Google App Maker. Whenever an input is submitted in a form, the answers should be merged into a Google Docs template, if the template contains a placeholder that matches the name of the field. For example, if the field name is last_name, the placeholder would be {{last_name}}. The document merge should go through each field of every item, so that I don't have to program the field names into the script. In a Google Spreadsheet this would be resolved by using a loop like function documentMerge() { var ss =

Connection from App Maker to Cloud SQL is locked

≯℡__Kan透↙ 提交于 2019-11-29 08:13:07
Cloud SQL is locked, it tells me to contact Admin to unlock. I've created Cloud SQL instance with service account "appmaker-maestro@appspot.gserviceaccount.com" on IAM & ADMIN. But App Maker doesn't see it. Added some tables by dbForge - it didn't helped. I already created connection before in another app, some month ago and it worked. But now it doesn't see SQL. In order to configure Default Cloud SQL instance for App Maker you need to navigate to admin.google.com -> Apps -> Additional Google Services -> App Maker and setup database there. Here is a link to more detailed instructions: https:/

App Maker Document approval template : How can I Add Default Approvers

非 Y 不嫁゛ 提交于 2019-11-28 14:13:46
I use document approval template, and I want to define default approver and stages. I have tried to change the custom value associates to the userpicker widget in EditRequest Page to define a default Approver by changing the location from 'onValueChange' to 'onAttach'. I set default value for mail's approvers. PageEditRequest/userPickerWidget Function associates to the custom value of userPickerWidget But I don't know how can I associate a new stage to an another approver... I tried a lot of things who failed Have you any ideas ? I want to have this type of results without any client

Google App Maker how to create Data Source from Google Contacts

瘦欲@ 提交于 2019-11-28 07:53:53
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. 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

Adding google groups to roles

大憨熊 提交于 2019-11-28 05:22:38
问题 I feel like I'm missing something here, looking at the documentation on roles for App Maker this shouldn't be an issue. Add members to roles However after testing this with a couple of different groups one created through GCDS (Active Directory group sync) and the other manually created through the G Suite admin panel and populated with two users neither the first or second groups members can access the deployed app. Are there any additional options that need to be checked on the group or in