Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Formatting GRID dynamically
tinujoseph
hi
i my rptdesign file , i have a grid with 4 columns and 5 rows. Based on some condition i am hiding a column in the grid.
Problem i am facing is, the layout of the grid is getting changed in the output when i am hiding the column.
Please advice how can i dynamically format the GRID so that in the output ,lay out is not affected.
Thanks in advance
Tinu Joseph
Find more posts tagged with
Comments
mwilliams
Hi Tinu,
Can you explain more of what you mean about the layout changing?
What version of BIRT are you using?
bhanley
Can you be a bit more specific as to what is happening that you would like to prevent? It is likely the behavior you are seeing is expected. BIRT uses auto-layout by default in order to optimize views across different browsers and output formats. When you hide something BIRT will attempt to use the screen as effectively as possible based on the elements being displayed.
If you can tell me what formatting you want enforced after the hiding of the column we can override the auto-layout and force the dimensions of certain elements to prevent re-formatting.
tinujoseph
Thanks Brian & Michael
Please find the attached screen shot for the out put i got...
The first GRID(red block) is having 4 columns .. and it is displaying fine.
In the Second Grid(blue block) i am hiding one column(Exchange rate).In the output the columns and values are misplaced.
Please advice which property of the GRID i need to set so that after hiding one column, respective values of the remaining columns will be displayed in order.
Version is : BIRT 2.0.1
Out Put Format is: PDF
Thanks
bhanley
I think the issue is the fact you are hiding the column. Once you hide the column, the grid is going to collapse by nature, you have changed the space it requires to display itself. This would be the case with a normal web page outside of BIRT as well.
Rather than hide the column, have you considered applying your visibility (show/hide) logic ot the data elements inside the grid rather than the grid element itself? Rather than hiding the grid column (and throwing your layout off) you will just hide the data in the column itself. This will get the data hidden (the primary goal) and still keep your report looking nice.