I am new to BIRT and have been digging in the Exchange for a way to dynamically change the width of the two columns in my grid.
We used to use OPTIO reporting tool which gave us the ability to build layers and have trigger code to toggle if that layer/secion is visible.
Now in BIRT I need to build the grid and place all the elements in the grid, however I have two different types of grids that need to print in the same location of my PDF. We have two shipping return label options. The data set will determine which label is generated.
We use BIRT 2.5.2 within MyEclipse Designer.
Currently I am modifying the this.width property within the column onCreate, but I just read that there is no such property to set at the column level.
My grid currently has one row and two columns (elements in each column are rotated 90 degrees). Each column contains their own grid(s) to contain the specific format for that return label.
I set the first grid within each column to be inline but that didn't do what I wanted. I think I would need both grids to be in the same column for that to work (CAN THAT BE DONE??)
When I print the first column's return label it prints with the top of the label at the left most edge of the report where I want it. However, when I am printing the second return label type the left most edge of the label is about 1.17in from the left edge of the report (value in the report that I am trying to override at runtime). I found that if I set the width of the first column to 0in and the width of the second column to 2.3333333333335in (width of the return label being developed) the desired outcome is met.
I have attached my report design with the onCreate methods in the grdLabels grid.
Can you help me figure out how I can dyncamically change the width of the columns to be able to print one return label type on my report?
Thank you in advance.
John