google-app-maker

Appmaker - Relation between local datasource and external datasource/Directory

你。 提交于 2019-12-11 06:14:09
问题 Trying to make a relational join between a local source (MyStaff) and the external datasource Directory (my company's directory). However, there isn't an option to relate them. Was hoping to create a local datasource with custom fields that I can "append" to user records from the existing Directory datasource. Any help is appreciated. L. 回答1: There is no way to create relations between Directory Model and other model types. You have at least three ways to workaround this shortage: One Query

How do I call a REST Google Cloud API from AppMaker?

回眸只為那壹抹淺笑 提交于 2019-12-11 05:42:56
问题 I want to call the Google Cloud AutoML API from AppMaker, but it's hard to figure out how to do that. How do I make a REST call to Google Cloud from AppMaker? 回答1: First, follow the instructions here to generate a service account and download the private key. (I'm also assuming you already enabled the APIs for your project.) Then, follow the instructions under the section "Addendum: Service account authorization without OAuth", but you will need to implement your own JWT encoding algorithm as

Google App maker record key value

南笙酒味 提交于 2019-12-11 05:30:05
问题 In App maker we enabled the manual save mode. On button click a new form will open and we will create an empty record, when user fills the fields and clicks the save button saveChanges function will save all the values. In documentation and sample projects I can see after a record creation _key value is updated in the data source and we can use that key value to query record from its child model. But in our case key value is not returned. But after save changes function when we open that

App Maker Exporting a useful output from Doc Approval Template

此生再无相见时 提交于 2019-12-11 05:21:29
问题 I've used (and customised) an app from the Document Approval Template. I have also found the basic way to export the entered records to google sheets. They come out as separate sheets, showing all the documents / approvers etc as a list on separate sheets, but what I really need is something that shows the relations i.e. who it was that auth each submitted record (especially with some making use of the two step auth feature of the template) Any ideas? 回答1: I'm happy to announce that App Maker

Send Email in Google AppMaker

半腔热情 提交于 2019-12-11 04:29:16
问题 A button won't perform following sendEmail(widget) on server script when clicked. But it also didn't show any error. function sendEmail(record) { var to = record.OwnerEmail; var subject = 'Contract Renewal Notice'; var body = 'Hello!<br/><p>Please be inform that your following contract is expiring soon:\n<br/>\n</p>'+ '<b>Contract Name</b>'+'<?= record.Name ?><br/>'+ '<b>Contract Value</b>'+'<?= record.Currency ?>'+' '+'<?= record.ContractValue ?><br/>'+ '<b>Contract Owner</b>'+'<?= record

Applying Script Library for Timeline

谁都会走 提交于 2019-12-11 03:08:20
问题 This is a follow up to my previous question. I apologize if this is too complex to answer here. I am trying to be able to show my data in a timeline view. I found a timeline script from Google here: https://developers.google.com/chart/interactive/docs/gallery/timeline But I'm not sure I am doing this correctly. I'm assuming I am supposed to: Add https://www.gstatic.com/charts/loader.js under the Settings section of my app. Then am I inserting this code as a client script? google.charts.load(

Maximize Page Value Syncing between Multiple Users in App Maker?

五迷三道 提交于 2019-12-11 02:42:09
问题 I would like to know how the best way and how to ensure multiple users using an App Maker app see the same data when using the App simultaneously. For example, if two users are on a ContactEdit page, for example, and they are editing the same Contact item details. If the datasource is set to autosave (i.e. not manual save mode), is the expected behavior that if one user updates Contact Name (input/edit field for the Contact item's name), that the other users viewing the same ContactEdit page

Appmaker group access permissions for developer to add group to role

余生长醉 提交于 2019-12-11 02:04:35
问题 I found some helpful information in this post [Adding google groups to roles ] which helped me realize I have to have permissions to at least read group membership in order to get a group to properly assign to a role under access permissions (or role assignment). The only way I could get the small group icon next to the group e-mail address was to add myself (developer account) to that group. I do not want to be added to every group in my domain which I assign to roles in my appmaker apps but

Google App Maker updating DB records in batches

早过忘川 提交于 2019-12-10 12:26:50
问题 We are having a Google App Maker app using Google Cloud SQL tables. Our location is Prague, Central Europe and app.saveRecords() takes incredible 240ms at minimum. We have tried many things including changing the location of the instance but it did not solve the problem. Fortunately, the solution is to insert new records in batches. This was brilliantly solved by the answer in my previous thread [ Google App Maker saving records to DB is taking 240ms per record ]. We would be so grateful if

AppMaker and picker widget - uploading to a specific folder

寵の児 提交于 2019-12-09 23:33:45
问题 I'm trying to have a button to allow users to upload a file, into a specific folder. I tried to follow other advise, and add this hook to onPickerInit: var uploadView = new google.picker.DocsUploadView() uploadView.setParent('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); // test folder pickerBuilder.addView(uploadView); I've set the MULTISELECT_ENABLED feature (without it, the destination folder is not respected), and I can in fact now upload the files where they belong. Yay! HOWEVER: The picker