Compatibility with Future macro?

I LOVE PocketQuery, but I have a couple reports that take a while and of course block the page from loading.  If you put it in a Future (part of the Bob Swift SQL package) it runs the query with the default parameters but the user cannot modify the parameters and rerun it.  Well, they can, but it just uses the defaults.  Here is a screenshot of the only visible wonkiness:

image2015-4-1 8:34:58.png

When it's outside of the Future, it looks like this:

image2015-4-1 8:35:31.png

1 answer

1 accepted

1 vote
Accepted answer

Hi Scott!

Thank you for using PocketQuery smile. The problem with a Future macro around the PocketQuery macro is that it will be a separate request. I.E. the PocketQuery macro will be rendered in another request environment (the Ajax request sent to the future servlet). While this is generally not a big deal for the default functionality of PQ, it breaks the "Dynamic Parameter" feature, since it reads the parameters from the request. Now in that case, PQ tries to read everything from the Future request that doesn't have the required information available.

We are currently working on PocketQuery 2.0 which will have its own "render macro dynamically" functionality. This will load the PocketQuery macro dynamically in the background and won't prevent the page from loading. No Future macro will be required anymore. Unfortunately, this release will still take some more time and I don't see any workaround for this issue at the moment. Maybe you can try to make your query faster somehow and go without the Future macro already?

Regards, Felix [Scandio]

Awesome news about 2.0, thanks!  Unfortunately this is a vendor DB and it is just very slow.

I might be able to provide you a beta version of 2.0. If you're interested, please send an email to atlassian[at]scandio.de

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

976 views 0 5
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