google-app-maker

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

我的未来我决定 提交于 2019-12-29 08:24:19
问题 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! 回答1: The only way to upload files that

Calling App Maker server scripts from outside of App Maker UI

血红的双手。 提交于 2019-12-25 03:11:19
问题 App Maker Guide (server script section) mentions that " It is important to note any function you define in a server script is open to all users of your application, even if you do not expose it in the UI." How can I call an app maker server script outside of UI? 来源: https://stackoverflow.com/questions/51731481/calling-app-maker-server-scripts-from-outside-of-app-maker-ui

How to get roles email address in AppMaker

倾然丶 夕夏残阳落幕 提交于 2019-12-25 02:18:42
问题 How to get the email address from user roles in AppMaker? I understand that app.user.role return a boolean whether the email address was assigned to that role or not. But how do we get the role email address then? 回答1: Server API has app.getRoleMemebers() which is what you want: var role = app.roles.Admins; var members = app.getRoleMembers(role); 来源: https://stackoverflow.com/questions/52034362/how-to-get-roles-email-address-in-appmaker

Asynchronous functions in Google AppMaker

a 夏天 提交于 2019-12-24 22:51:53
问题 I have a function BigQueryGetEmail() that query requester Manager info from BigQuery. I call the code in order to get the info and pass it to a variable. But the problem is because JS is a single threaded language, so I think that it skips the code where I call the BigQueryGetEmail() function before it finish querying the info that I need. The effect is when I assign it to a variable for sure it will return an error because there is no data yet. I have tried to put the variable assignment

How to pass a variable to SQL query on AppMaker?

断了今生、忘了曾经 提交于 2019-12-24 19:28:58
问题 I have to query some data from BigQuery. The code looks like this: function GetQuery(employeeId) { var projectId = 'xxxx-xx-xxx'; var request = { query: 'SELECT HOD_Email ' + 'FROM [xxxx-xx-xxx.table_name.dataset] ' + 'WHERE EmployeeId = employeeId' }; } And I don't think it works 😅 回答1: Instead of 'WHERE EmployeeId = employeeId' try 'WHERE EmployeeId = "' + employeeId + '"' 来源: https://stackoverflow.com/questions/53862192/how-to-pass-a-variable-to-sql-query-on-appmaker

How do customize a popup like Snackbar or Notification dialog with a message?

ε祈祈猫儿з 提交于 2019-12-24 19:13:43
问题 I am trying to include a feature in my app that examines the values of a column in a user-uploaded Google sheet and verifies whether they are correct or not. If there are any incorrect values, a popup like Snackbar or Notification dialog will appear listing the incorrect values. If there are no incorrect values, no popup will appear. How do you display a popup with different values depending on the situation? Is there a way to display unique popups directly from the ServerScript without

How to I revert to manual save mode

走远了吗. 提交于 2019-12-24 11:03:01
问题 In app maker where on a table do I set and reset manual save mode after the table has been created on the page? I have tried look at the API documentation, and while it talks to Manual Save Mode. It does not have a method to call, that I can see, to toggle this. 回答1: 'Save mode' is design time setting and cannot be changed in runtime. You can toggle 'Manual save mode' check box for any datasource(only for editable models) any time while designing your app: 来源: https://stackoverflow.com

How do you set a Link so that it opens in a new tab or window in Google App Maker?

主宰稳场 提交于 2019-12-24 10:47:25
问题 In my Google App Maker application, whenever a user clicks on a Link, it causes the href link to open in the same window as the application. This causes a problem because the user has to click back in order to access the application again. Is there any way to set the link such that when a user clicks on it (without right click > open new tab), the page opens in a new tab/window? Thanks. 回答1: Try window.open('www.your_link.com','_blank'); 回答2: In the app maker property editor for the link

How to print a form in appmaker?

荒凉一梦 提交于 2019-12-24 10:03:36
问题 I have a page which contains a form. I want that form to be printed when I click on a button. From this link(Print Friendly Page) I got the below code but its not working as expected. function print(widget, title){ var content=widget.getElement().innerHTML; var win = window.open('', 'printWindow', 'height=600,width=800'); win.document.write('<head><title>'+title+'/title></head>'); win.document.write('<body>'+content+'</body>'); win.document.close(); win.focus(); win.print(); win.close(); }

Google App maker list view filtering

六眼飞鱼酱① 提交于 2019-12-24 08:24:58
问题 We have tables in app maker that shows data in list view and it will add default features like sorting, paging. We want filters on top of each column in that table, drop down control acts as filter that will list all the distinct values on its configured column. When I select a value in dropdown it should filter the value from datasource and load in the list view. If two filters or more filters is applied at the same time, the filters should act as AND condition that will bring values