Integrate With ProcFu
Last updated
Last updated
It's pretty easy to surface your query results in ProcFu if you are looking to do so. Below are the steps you will need to take.
The first thing you will want to do when integrating UseSQL with one of your Profu Apps is to create a new screen of type "Text Information". After in the section where is says markdown text you will need to make sure to add an html element, which is valid in the markdown text field, with an identifier. In this example we will name it "sql-result".
Now that we have a container to write our query results to. We can paste in some Javascript in the "On Render (Javascript)" section under the "Behaviors" tab. Below is some JavaScript you can copy and paste or replace with your own query, and a screenshot of the location to paste it into. Don't forget you can always build your queries in the sandbox at https://www.usesql.com/sandbox.
You will take the script above, and add your API key, and place it in the "On Render (Javascript)" section as shown below.
Save your results and visit your ProFu link.