Hello,
I have a usecase that i thought i was able to solve, but obviously i am failing. I am trying to position a "slider" on a rectangle like this:
+---|----------+
+---|----------+
I hope you see the rectangle and the slider in the nice ascii art? Positioning the rectangle is already working fine (just drag and drop to the canvas with no dynamic foo) - but the slider makes problems and i wonder where i am doing wrong:
I am working with prd 3.9.1-GA. 16112 and try to dynamically position this slider (in prd its a rectangle) in a Details-Band with canvas layout. The sub-report where the band resides in contains following data items:
1) An imported parameter "total" from his parent report where it is of type long.
2) An mysql query that contains a column called "data" which is of type BigDecimal
I can drag and drop the data items into the band and have them displayed (eg in pdf preview) as number-fields showing the correct values.
If i now set the style attribute "x" in size & position to
= 225 + ( [data] / [total] ) * 197
i expect that the slider is positioned with the value that is the result of this formula but it is not shown at all. I have also seen this working in other reports but in my case it does not. Can anybody help me out?
Sorry for the lot of questions...
Matthias
UPDATE: The slider gets actually shown at the very left edge of the report (i assume prd has figured out x=0 somehow)
I have a usecase that i thought i was able to solve, but obviously i am failing. I am trying to position a "slider" on a rectangle like this:
+---|----------+
+---|----------+
I hope you see the rectangle and the slider in the nice ascii art? Positioning the rectangle is already working fine (just drag and drop to the canvas with no dynamic foo) - but the slider makes problems and i wonder where i am doing wrong:
I am working with prd 3.9.1-GA. 16112 and try to dynamically position this slider (in prd its a rectangle) in a Details-Band with canvas layout. The sub-report where the band resides in contains following data items:
1) An imported parameter "total" from his parent report where it is of type long.
2) An mysql query that contains a column called "data" which is of type BigDecimal
I can drag and drop the data items into the band and have them displayed (eg in pdf preview) as number-fields showing the correct values.
If i now set the style attribute "x" in size & position to
= 225 + ( [data] / [total] ) * 197
i expect that the slider is positioned with the value that is the result of this formula but it is not shown at all. I have also seen this working in other reports but in my case it does not. Can anybody help me out?
Sorry for the lot of questions...
Matthias
UPDATE: The slider gets actually shown at the very left edge of the report (i assume prd has figured out x=0 somehow)