google-app-maker

How to display data for a specific month in a table?

风流意气都作罢 提交于 2021-02-11 13:42:39
问题 I want to know how to display data for a specific month in a table. There is a table with the column [EmployeeId,Date,StartTime,EndTime]. I want to filter by the month of Date, but I don't know how. var AttendanceResult = []; // Select employee number and current month data var query = app.models.AttendanceMaster.newQuery(); query.filters.EmployeeId._equals = userNumber; // Match employee number query.filters.Date._contains = roadMonth; // Including month var records = query.run(); for (var i

Conditional formatting in AppMaker table

◇◆丶佛笑我妖孽 提交于 2021-02-08 09:33:46
问题 Have a data table in AppMaker and would like to do conditional formatting (Green to Red) in several columns based on the field value. For example if ROI is over 40% give the number a dark green bg, 20% light green, < 0% red, etc. Ideally I want to do a gradient like excel but that might be too complicated. Any help would be appreciated. 回答1: Couple of assumptions, I am guessing your column is a vertical/horizontal/fixed panel or some other type of widget that you can edit in App Maker's

Dynamically Bind Data source to app maker popup

江枫思渺然 提交于 2021-02-08 05:07:20
问题 I need to have a generic "Delete confirmation" pop up and dynamically bind data source to the pop up using event fired before pop-up is appeared. Popup will be appeared on clicking the delete icon on "Location" Page (screenshot bellow). I need to set the data source of the popup at the same time. (when user click on this delete icon) and record has to be deleted when user click on "Delete" button on the popup. This is the code I have currently for the onclick event of the delete icon above

User Picker to field values

梦想的初衷 提交于 2021-01-29 08:41:32
问题 Sorry if this is too basic for this site, but app maker help directed me here. I am creating a data entry screen that includes basic info for a user - name, email, phone, etc. I am using the user picker to select the individual from our Directory. How do I pass all of the needed Directory field values of the selected user to my insert record screen. I am checking the valueisRecord box on the user picker, but can't figure out how to assign the selected user's info to the form's value fields.

Appmaker: How can I create and access global variables?

佐手、 提交于 2021-01-29 07:50:39
问题 I am trying to make a button which acts as a switch, enabling the visibility of a panel. I am running a client side script when the onClick event fires, which is the following: function { if(app.datasources.global.item.hideshow===false) { *does one thing* } else if(app.datasources.global.item.hideshow===true) { *does another* } } My problem is, that the global (which is the datasource).item seems to be a null according to the console error log. It seems like i am trying to access one property

ReferenceError: “Drive” is not defined

与世无争的帅哥 提交于 2021-01-07 02:44:32
问题 In Google App Maker, I am writing a function in ServerScript that will convert a user-uploaded Excel spreadsheet to Google spreadsheet. I am using this piece of code (https://stackoverflow.com/a/35597644/9878092), but I am getting ReferenceError: "Drive" is not defined. I tried using the line of code that I got directly from the link: file = Drive.Files.insert(file, xlsxBlob, { and my own edited version: file = Drive.Files.update(file, ssFileID, xlsxBlob, { Where ssFileID is the file id of

ReferenceError: “Drive” is not defined

旧巷老猫 提交于 2021-01-07 02:43:46
问题 In Google App Maker, I am writing a function in ServerScript that will convert a user-uploaded Excel spreadsheet to Google spreadsheet. I am using this piece of code (https://stackoverflow.com/a/35597644/9878092), but I am getting ReferenceError: "Drive" is not defined. I tried using the line of code that I got directly from the link: file = Drive.Files.insert(file, xlsxBlob, { and my own edited version: file = Drive.Files.update(file, ssFileID, xlsxBlob, { Where ssFileID is the file id of

Select field from SQL Datasource in Google App Maker based on drop down value

╄→尐↘猪︶ㄣ 提交于 2020-03-05 02:01:58
问题 I am running into an issue where I have 3 SQL Datasources ( Employee , Course , Overview ). I have created a page inherited from the Overview Datasource , where i have created a drop down (options based on the Employee Datasource Employee.items.Name._equals, value set to Overview.Item.Name ). When i select his name in the drop down, I want to dynamically fill in a text field where it selects the email field from the Employee Datasource based on the person selection in the drop-down. Is this

AppMaker: environment variables per deployment ? Get the deployment name?

帅比萌擦擦* 提交于 2020-02-24 04:37:10
问题 Some times ago I asked this: How to check in both server-side and client-side scripts if we are in preview mode or deployed version Because I wanted in my code to have different logic whether it is the preview mode or not. The answer was "preview mode is just another deployment and each deployment has its own Drive table, store some env variables there". That was true and made the trick. Problem: Drive tables don't exist anymore. I have not been working with AppMaker the past months so maybe

Trying To Send Creation Notification Email

邮差的信 提交于 2020-01-30 08:47:46
问题 I want a notification email to go out when a user creates an entry that contains information from that entry (or widget). Ex: to: groupemail@company.com subject: Project Name body: "User1 has created a new project with the Status of In Progress". I tried to look at the Project Tracker App for reference, but I'm still lost. I assumed I would need to create a Client Script, do something like the function below and add that function to the onClick Event for "Submit Button" in the Page Fragment