I have a google sheet that allows users to enter values and then gives a result based on their entries. When the next user logs in, a script runs to flush the user entry cells so the next user can use the sheet to get their result. Because the flush script runs every time a user opens up the sheet, if another user is already in it entering information, the sheet is cleared of information whilst they are still in it and then both users are trying to add 'their' information at the same time. Is there a script I can trigger to run on open to lock the sheet to one user at a time and then release it when they log out or after circa 10 mins of inactivity? Note that I am sharing the sheet without need to sign in as many users will not have a google account. Thankyou!
Related
I have BigQuery permissions, and Google Sheets, under a company owned Google account.
I have made a spreadsheet for a colleague, the data for which is there via a BigQuery data connection, which creates a sheet in the spreadsheet with the results of that query.
There's a button at the bottom left that tells you how many rows were returned, what time it was run, and has a 'REFRESH' button on it.
I can press the refresh button and it refreshes the data by running the query again. My colleague gets an error when they do.
What (presumably BigQuery) permission do they requirement in order to be able to press the 'REFRESH' button and have it work?
After doing some tests regarding your scenario, I added the "BigQuery Data Viewer" and "BigQuery User" roles to my test user to not get the "Excecution Error" message while pressing the "REFRESH" button. For more information regarding BigQuery roles, please review the following document.
Hope it helps.
I have 2 aims but first would do. 1: Hover dropdown list in google sheets cell (hover = list opens up) and syntax please . 2: acts on last item hovered over in dropdown list (e.g. a number in another cell) .Basically trying to do away with need for clicks.
hover = list opens up
This is not featured by Google Sheets and cannot be programmatically installed.
You may refer to triggers, all we can is:
onOpen(e) runs when a user opens a spreadsheet, document, or form that
he or she has permission to edit.
onEdit(e) runs when a user changes a
value in a spreadsheet.
onInstall(e) runs when a user installs an
add-on.
doGet(e) runs when a user visits a web app or a program sends
an HTTP GET request to a web app.
doPost(e) runs when a program sends
an HTTP POST request to a web app.
https://developers.google.com/apps-script/guides/triggers/
Consider an app where you maintain a leader-board for users of your app.
Your app has 10 bit.ly links, that a user must tweet.
If the user tweets a link, he gets 5 points. So far I have figured how I must do this, and this is running inside the app properly.
The second functionality of the leader-board app is, to add 2 points to the user's account, if the link shared by the user is clicked.
For instance,
User A shared the bit.ly link http://bit.ly/1yowZ54 on twitter
User A gets 5 points
Find the number of clicks on the link shared by User A and award
numberOfClicks * 2 points to User A
I want a solution for the last step. Is there any way, where I could find how many times the shared link was clicked.
Add a + to the end of the Bit.ly URL.
For example, http://bit.ly/1yowZ54+ will take you to a stats page showing how many clicks a link has had.
There is a comprehensive API available should you wish to do this programatically.
So I am trying to work on a status attribute for users for when they are online, offline, or away but the away one is throwing me off. I have the online set when the user logs in and the offline set when the user clicks logout. But how do I check when a user has been sitting on a page for a while so I can set the status attribute to away? According to other questions you can check your updated_at timestamp but I don't think you can because my doesn't update after each page load.
Have a look at rails instrumentation API. You can capture all the user actions using the instrumentation API. If there are no actions from the user in past x minutes and the user is not logged out, then your user is idle/away.
Instrumentation will be very helpful to analyse trends, preferences etc.
For eg: You can find out the action that had the most number of hits
I am using Google Analytics iOS SDK (version 2 but will upgrade if it solves problem). How can I track what percentage of my app users have pressed a certain button at least once? I set up a lot of event tracking, thinking this would do it, but the reports are in terms of sessions not users. E.g., it will show what percentage of sessions included an event, so a single user may be counted multiple times. I defined a custom dimension variable that is unique for each app install, but I don't see how to use that as aggregation unit.
All I can think of is to define my own "one time events" by keeping my own database on the device and only pass to Google Analytics the first time it occurs. Is there no better way?
Google Analytics now offers User segment. You could create a user segment, and use the particular event you're interested in as a condition.
In the context of app measurement, a User is defined as a unique Client ID, which is the random ID generated by the GA SDK when the application first runs. It remains stable for as long as an app is installed.
More details here: http://analytics.blogspot.com/2013/07/re-imagining-segmentation-in-analytics.html