In Heroku Dataclips, how to hide the Query - heroku

Is there a way to hide the Query shown at the top of the DataClip on Heroku?
I would like to give access to view the data but not the SQL.

Maybe not exactly what you want, but you don't get the query included when you just download the data as .csv

Related

Is there a way to open the graphql playground with a specific query?

We have a site where users can explore a database, and we show visualizations and stuff. I'd like to be able to direct people to the graphql playground with specific queries, in case they want to download the raw JSON for further analysis, or to add things to the query to dig into the data in their own way.
It'd be cool if I could present them with a link to the playground, and pre-populate the query field with whatever I want. Is there a way to do that?
Add ?query={encoded query} to your url, where the encoded query value is your graphql query, encoded. This will populate the query window on open.

Subquery in JQuery QueryBuilder

I am going to use the JQuery Query Builder plugin in my project. I want to know how query will generate for relational table.
For example, I have two tables user and user_emails. I want to filter those users which have an email address. To get this result, I have to use subquery on user_emails table. Has that been possible by using this plugin? In the demo, I have not found this case.
Your question is vague. Do you want to build conditions in the jQuery-QueryBuilder for "All users with emails"? You also want the jQuery-QueryBuilder to look and return something like the following?
After you clarify the community can point you in the right direction.

turbogears querying the database for file

I am using the Turbogears-2.3 framework and now I know how to upload the files in the database using the tgext.datahelpers. I understand that the file gets uploaded in the disk and in the database the metadata gets stored in the JSON format. Now I want to query the database and wanted that the link to get generated in the file collumn so if someone clicks on it then the file can get downloaded. However when I tried to query the database and viewed the table, in the file column I get text like trai.model.model.F_AttachedFile object at 0xa7325bac (trai is the name of the project).
When I iterated through the table and printed the value of the element in the javascript console, the same thing is getting printed. Could anyone please tell me how to generate the downloadable link from this.
Thank you very much
Not sure that I full understood your question, a little snippet of code might have helped understanding the context, but if I guessed correctly you are trying to the the url of a tgext.datahelpers uploaded file.
In such case see https://bitbucket.org/axant/tgext.datahelpers#rst-header-attachments each attachment Column provides an url property, so you can get the URL from there.
There is also an example that saves and Document model with a file field and queries it back printing the url.

multiple filters in an APEX 3.2 report

I want to have multiple filters in an APEX report but it seems it's not possible? I'm new to apex so it's quite possible too I just don't know how to do it.
I've searched around the net and looked at the various settings in the APEX page but I can't find what I'm looking for.
Like in this screenshot: http://i.imgur.com/3j3wOIG.png
I can only have 1 filter available. I want to filter on other fields too including fields which are not in the report columns.
Is this possible? If yes, can you please teach me? thanks
Columns that aren't displayed in your report are not rendered on your page, therefore you can not filter on them. If you want do so anyway, you need to create a filter based on page items, which you can append to your report query in the where clause.
e.g. create a page item P1_FILTER1 and reference it in your query as: "...where my_column = nvl(:P1_FILTER1,my_column)".
To ensure data consistency you can best create your page item as a select list.

Getting a dbid by table name

As far as I know, all QuickBase API calls are called using the following syntax: http://<quickbase>/db/<dbid>?
Is there a way to get the dbid field without navigating to that database table within QuickBase?
If the above is not possible, would anyone recommend anything other than creating another table that stores the IDs of the tables you want?
With the latter method, I believe I would only need to store one dbid and could pull down the rest (which I believe would still need to be user entered, but would be better than requiring them to change the code).
Thanks for the help!
API_GetSchema will return the list of dbids.
https://www.quickbase.com/db/<yourApplicationId>?act=API_GetSchema&apptoken=<yourApplicationTokenId>&fmt=flat

Resources