google-app-maker

How can I sort a list by month in App Maker?

依然范特西╮ 提交于 2020-01-06 06:03:24
问题 I want to sort a list in App Maker by month, and I don't know how to it. I think that was the way, but is not. @datasource.item.MONTH#sort() 回答1: I am not sure how many ways there are to achieve this but here are two ways: First one: Go the the model datasource and change the sorting option to reflect the month and then choose by ascending or descending. See the example below. Second one: Select the table widget and the go to the events section in the Property Editor . Click on the onDataLoad

MailApp specify mailbox sender

倾然丶 夕夏残阳落幕 提交于 2020-01-06 05:36:34
问题 Is it possible to send an email via Google Apps Script's MailApp class that would send the email from an existing (non Gmail) mailbox? Currently, when I trigger an email from the code below, the email actually comes from a random Google server that is spoofing as the user triggering the email. I would like the email to be sent directly by a mailbox within my organization, if at all possible. MailApp.sendEmail({ to: 'example@yahoo.com', name: 'Jane Doe', replyTo: 'example@google.com', subject:

select default value for drop down list and radio group in app-maker

跟風遠走 提交于 2020-01-06 01:37:45
问题 For the app I'm building on Google App Maker I was asked to set default value for my dropdown list and my radio group , and it seems nearly impossible to do it , any ideas how to do it ? (default value and not Null item because the null item is not allowed in my case ) the value of the dropdown and radio group it a query parameter and not a datasource feild 回答1: Why not use the onAttach event handler? You can set your widget onAttach even logic like this: widget.value = "My default value";

Had trouble linking widget to a queried datasource

随声附和 提交于 2020-01-05 06:26:29
问题 I'm sure everyone already knows this, but it took me a while to figure out so I thought I would share. Basically I was trying tell a widget to change color based on the current status of an entry in my model. But I needed Widget 1 to change for Room 201, Widget 2 to change for Room 202, etc. Ex: Room: 201, Status: Available = Widget 1: Green Room: 202, Status: Booked = Widget 2: Red I could get the widgets to change color (thanks to borrowing from the code in the Project List Sample), but I

Best way for displaying total Pages for a datasource in Appmaker

笑着哭i 提交于 2020-01-05 04:25:07
问题 I have a Google drive table data source which stores list of open positions. Now in the data source I've set "Query per size" field to 10 so that I can get 10 records per page. I've added a Pager as well to show pagination. My query is I want to display like "Page 1 of X" to my end users and this X will vary based on certain search filters. What will the best way to achieve this in Appmaker? I've tried counting total records in a data source as per below code but every time updating that with

How to browse to the next page in a datasource that is loaded into table in Google AppMaker

我们两清 提交于 2020-01-05 03:30:08
问题 I'm working on a requirement where I have a datasource named 'emailSearchResults' where I search for email messages metadata and load the results in the datasource. The fields in the datasource are not relevant, however I set the datasource to have 50 records per page as per the below screenshot: The script I used to load the datasource is shown in the query field, that call the following script: function getMessageDetails(userId, msgID) { var messageDetails = []; var messageData; var msgID_

How to include a relation of a relation in an AppMaker table field?

。_饼干妹妹 提交于 2019-12-31 05:30:11
问题 I have three data models, Partner, Client and SOW, where Client is a one-to-many relation to SOW, and Partner is a one-to-many relation to Client. I would like to include Partner Name as a column in a table displaying SOWs. Is there a way to do this with a datasource query script? Or a different approach altogether? I was able to add a label to the SOW table row that is data bound to the Partner name via relation, but I have yet to tackle sorting and filtering by Partner, and this method

How Can I Filter Multiple Variables In A Table?

怎甘沉沦 提交于 2019-12-30 07:42:02
问题 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';

How Can I Filter Multiple Variables In A Table?

坚强是说给别人听的谎言 提交于 2019-12-30 07:41:19
问题 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';

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

人盡茶涼 提交于 2019-12-29 08:24:47
问题 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