sql-queries with parameters

Hi, i am trying to find out a way to enter a name in a text box and then execute a sqlquery based on that. you have some examples for example:

SELECT Name, GovernmentForm, Region, HeadOfState 

FROM Country 
WHERE Continent = :continent
but how can i add a textbox for :contient in confluence? 

 

2 answers

Hi Tom,

You can automatically embed a text box for your parameter in your Confluence page so users can change the value on-the-fly. Simply check both parameters "Enable dynamic parameters" and "Use change params template". Also, the "Dynamic Load" (PocketQuery >= 2.0) might then be interesting for you. You can find all this in our documentation.

Please note however that users will be able to input anything into this text box. If you want a more regulated input (e.g. a select box), you'll have to program a more advanced PocketQuery template.

Regards, Felix (Scandio)

Thanks. i tried that and it seems to be working. Can "Use change params template" be used when your're not signed in to confluence? works when im logged in when im not i just got a loading icon. 

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

185 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you