Formatting and styles in SQL Query macro with row display set to horizontal

When row display is set to horizontal in SQL Query macro, it seems like text alignment goes out the door. Numbers no longer get recognised even if column types are specified as F or FF, column, row and table styles (such as text-align:right) have no effect. Am I missing something?

 

Thank you very much in advance.

2 answers

This widget could not be displayed.

@Bob Swift [Bob Swift Atlassian Add-ons]: All yours Bob smile

Thanks for the heads-up!

This widget could not be displayed.

Good question since the rowOrientation parameter doesn't say anything about what should be expected. I have updated that to:

Note that most of the styling, formatting, sorting, auto, and similar parameters only apply to the vertical orientation setting.

That may not be the answer you wanted sad. I know when I was using this support a few years ago, the use case didn't have any needs in this area. Can you provide some detailed information on your use case so we can see what we may want to add in the future? I created SQL-483 for that discussion. You will need a login (Help).

I see 2 fundamental approaches you could take:
1) transpose the table and keep the styling fixed to the original layout (i.e. what used to be rows become columns, but keep their row style, and vice versa)
2) treat the transposed table as a new table and apply the styling afterwards (i.e. the new rows use row styling).

Maybe even a switch between the two modes?

I think it would have to be 2. We could certainly apply the column styles to the 2 columns. I guess row styles like alternating coloring would apply fine. Would that help your use case?

I am actually somewhat more concerned about the recognition of content type, such as right-aligning numbers, calculating the automatic total row, etc.

As for the styles, it looks like once transposed, the first column assumes the style of what used to be the heading row - bold fonts. And the first row assumes the style of what used to be the first column.

On a slightly related note, how does one style the 'automatic' total row?

You can customize the formatting - see Formatting the Auto Total Row for Numeric Columns. However, for styling, you would have to do that outside the macro using something like the style macro sad.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

399 views 4 6
Join discussion

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