Integrate With ProcFu

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.

Step 1: Create A New Screen

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".

Step 2: Update Screen Behaviors

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

  .then(response => response.text())
  .then(data => document.getElementById('sql-result').innerHTML = data);

You will take the script above, and add your API key, and place it in the "On Render (Javascript)" section as shown below.

Step 3: Save Your Results And Enjoy!

Save your results and visit your ProFu link.

Last updated