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.
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 . 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bob Swift [Bob Swift Atlassian Add-ons]: All yours Bob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the heads-up!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Want to leave your mark on Confluence? One winner will have their whiteboard design added into Confluence for all users to access! This is your chance to showcase your creativity, help others, and gain recognition in the Confluence community.
Share your template today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.