If the value for A_GREENBAR or A_BLUEBAR or... is/are equal to 0 then I want to hide this image in the MYBAR using visible=false. I am trying to use the example in Tips and Techniques Graphtype... but I can not hide the colored bars when they are equal to 0.
Any Ideas??
ERINPThis message has been edited. Last edited by: ERINP,
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
October 20, 2011, 03:03 PM
njsden
Sorry ... I don't think I get it ... which image do you want to hide exactly? under which conditions?
Now, what's the purpose of adding an image to the page if it's not going to be visible?
If you need to go through the trouble of determining visibility based on A_COLORBAR, you could instead determine if the whole IMG tag is needed based on the same.
As a bonus, the web page will render slightly faster!
njsden and Francis, thank you for the insite and the help. Using the Inline Styling did the trick now I just need to make the "style="visibility:hidden;" dynamic based on values within my report.
Thanks again, ERINP
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
October 20, 2011, 04:36 PM
ERINP
quote:
Now, what's the purpose of adding an image to the page if it's not going to be visible?
Based on a sample in the tips and techniques I am using the colorbars to create a horizontal graph for eachrow of data within a report. I have 5 colors, some or all may be blank, based on there percentages I set the width of the image as a representation of the underlying data. which allows for a visualization of the data. Once I get it hooked up I will create a CAR example to better explain.
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Oh, I did not see your response before I posted the message above. Anyway, it does not really matter. Hopefully the visibility style will do what you need.
njsden, Thats the type of logic I was looking for... I was wondering how I was going to wiggle thru the combinations and permutations for 5 colored bars... Thank You for shedding light on my clouded thinking.
ERINP
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
October 21, 2011, 01:27 PM
njsden
You're welcome! You had most of it there anyway so your thinking was much clearer than you think
If this is now working for you, would you mind editing your post and prefixing its title with [SOLVED]?This message has been edited. Last edited by: njsden,
njsden, I added the [solved] to the header of my original post. I am going to re-create what I was/am attempting to do with the CAR file cuz its sort of neat.
Thanks Again, ERINP
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
October 21, 2011, 01:46 PM
njsden
Great! Please do post your sample code once it's ready. As you said, it is a neat technique which either of us here may have a need for in future projects.