I am querying several columns from a large database but some of the results are empty because they are so in the database, which is fine. The problem is that when PocketQuery hits an empty result it just echoes that portion of my template, so the row looks like this:
Is there a way to change this behavior? I'd like it to say something like "None Available" or just be blank. How can I do this?
I'd also like to know how to set column widths in my template, this isn't working:
<th class="col-$velocityCount" width="70%">Description</th>
Thank you for your interest in PocketQuery! What you want to achieve should be fairly straight-forward.
For the description field, you can simply write this in your template to leave the cell blank:
If you want to write something else if the value is blank, you can do this:
Regarding your column width, you should write some CSS instead of using the width attribute (which is deprecated and not supported in HTML5). You can easily write a <style>...</style> tag on top of your template and write arbitrary CSS. Just make sure you write your selectors with .pocketquery-view in front such that you scope your selectors for the PocketQuery table only. It's described with many references in this StackOverflow article how to style the width of your table columns.
Let me know if you need further help!
Regards, Felix [Scandio]
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...
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!
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