Is it possible to use Google App Script to create fusion table views (from an existing FT) and, optionally with filter settings? I need to enumerate the columns of the FT (which I know how to do) and create different views and ideally, I need to get their URLs too. I have not seen any documentation or examples that discuss this.
OK, I found the docs that show how to do this. See: https://developers.google.com/fusiontables/docs/v2/sql-reference#createView
Related
I'm trying to create a table with editable cells in a google form that lets people enter their response. It would have multiple fixed columns and dynamically adding rows for more response.
Sample image of the desired table in google form for response
I am naive about building google forms and running scripts/codes on forms. A detailed explanation of steps will be of good help.
Thanking in advance to wonderful people who do such fabulous work
At the moment it is not possible to insert tables in Google Forms, not even via Apps Script, but since you are interested in learning about Forms and Scripts I would recommend you start with this quickstart about managing Form responses.
If you explain perhaps with more detail what your goal by inserting the table is, maybe there is a way with the available options in forms to achieve it.
I want to connect a Google Sheets to a new BigQuery table that populates and updates the data automatically from Sheets to BigQuery. I'm using this tutorial from Google itself to do the setup.
My problem: the table connected with spreadsheet was created empty so I had to query it and save the result as another table to see and use the data.
I can't post images yet so I ask you please to check this imgur post, please.
I'm not expert in these things but does not seems to be the best way to do it. I found some spreadsheet add-ons but I'm trying to avoid them.
Any ideas what's the best way to do this kind of setup/connection?
I had to configure each column manually
BigQuery provides a variety of tools which make it pretty simple to connect the external table to BigQuery.
One option is to simply use the WebUi and the Auto Detect option which help you not to enter each column manually
This works perfectly for me also when inserting and adding data to the external table.
You can refer to BigQuery official manual on an external table for more help
I am trying to create a sidebar to go along with the google map visualization I've created with fusion tables. I found this page fusion table with sidebar with an updated SQL query statement. I've tried implementing a similar statement and I am unable to view the map. What am I doing wrong? Here is my code with the SQL statement:
https://gist.github.com/anonymous/0a9214027de977e40ed04b9db17cc7f7
I don't have the expertise or time to correct all the JavaScript at moment, but I can see a few issues I noticed that could be causing you issues.
You don't have an API call included in the query, which
can be found/created at
https://console.cloud.google.com/apis/library.
You're not querying the correct column for your location (col4, not col2). It starts at 0; so col0, col1, ...
You need to create a map and then load the Fusion Table layer over it.
There's possibly a few more issues I didn't immediately see. An alternative to trying to fix this custom code is to use the "Searchable Map Template" by Derek Elder. It uses Bootstrap for CSS, you plug in your API key, Google Fusion Tables ID, and the location column. It allows for filters to be input, like your Genre drop-down menu. It's free, fairly well documented, and has a support group to help with any questions or issues.
Maybe that's what you need if you just want a quicker fix. I realize I didn't exactly answer your question, but if you could upvote the answer if it was a least somewhat useful, I'd appreciate it.
So I've got a couple of different fusiontable visualizations in a google site:
https://sites.google.com/site/hlsbeta123123123123/
I am wondering if there is a way to link them so that when a pin in the map is selected the corresponding card is shown in the other iframe?
What I'd really like to be able to do is offer people a search over the fusion table via the google site, so that when somebody searched in the site search, they'd get back a list of hits in the map and cards, and have them all linked up together ... Any simple way to do this over paired visualizations or would this have to be custom site built on the fusiontables API?
I know fusion tables wizard:
http://fusion-tables-api-samples.googlecode.com/svn/trunk/FusionTablesLayerWizard/src/index.html
can provide something like this for a single visualization, but am unclear about linking multiple visualizations - maybe that's just completely impractical ...
Many thanks in advance
Cheers> SAM
p.s. Here's a current screenshot in case it the site changes :-)
It's possible, but instead of the iframe-map you must create the map on your own to be able to modify the default behaviour(opening of the infoWindow on click and load the filtered card instead).
It's not much difficult, the most of the src you will get with map->publish->get HTML and javascript
All you have to do is:
supress the infoWindows(set the suppressInfoWindows-option of the layer to true)
observe the click-event of the layer and load the card based on a unique col(Charity Number appears to be unique)
google.maps.event.addListener(layerl0, 'click',function(e){
document.getElementById('cards')//iframe-element
.src='https://www.google.com/fusiontables/embedviz?viz=CARD&q=select+*+from+1ZnLJPfdXgiD49s3JO9Vyhf0VPGgBnzs-985jT3s+where+col1+%3D+'+e.row['Charity Number'].value+'&tmplt=4&cpr=1';
});
Demo: http://jsfiddle.net/doktormolle/YVnus/
But actually showing the cards in an iframe forces a redundant request, instead you may fetch the contents of the infoWindow and insert them directly into the page.
I am looking for a way to allow web users to view tabular information in a view, and interact with the data in a similar way. In other words:
Tab through cells
Highlight multiple cells
Fill multiple cells simultaneously
Does such a plugin exist? I have not been able to locate one via search engines.
Maybe activescaffold is what you want? http://activescaffold.com/
Check out something like Google's charting API, it includes an interactive table which can be sorted by headers etc. It doesn't look like it does editing, but I'm not sure if that's a requirement for you or not. If you need an editable table, I guess you'd be looking for a specialised wysiwyg editor in javascript for that.