I am building an application in Google App Maker that upon a file upload via Drive Picker button, the page will display the date and time of the most recent upload. The part I am unsure of what to do is how to display unique date/time values on the page (reloading the page with new values each time the user uploads a file). I was going through the Google App Maker documentation, and I think it has something to do with binding label values but I am unsure of what to do with it. Thank you for your help!
1
votes
1 Answers
0
votes
On Drive Picket widget, you can bind events. Bind a Function on onDocumentSelect
event. This event will be called once user has selected the document.
Once you have bind this function, implement the date time display logic in the function. Here's the sample.
//Client Script
function printJSON(widget,result)
{
widget.datasource.item.DateField = new Date();
}