Focal Point
[SOLVED] Formatting HTML reports

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3047080906

August 30, 2011, 02:45 PM
JRS
[SOLVED] Formatting HTML reports
How can I get my HTML report to display alternating colors for each record. ie. lines alternating between gray and white. I'm using WF Developer studio version 7.6.11 on windows pc.

This message has been edited. Last edited by: Kerry,


7.7.03

OS/Oracle

Windows
Output:All
August 30, 2011, 03:48 PM
MarciaDrummond
1. Multi-select all columns then do a right-click and select Options.
2. Set Active Object to Column Data (on the left)
3. Select Alternating Color (on the right) and then Select Colors.
4. Choose your desired colours. You can also specify alternate on By Field by clicking the check box and choosing the field.


WebFOCUS 7.73
Windows, Unix, AS/400 (iSeries)
HTML, PDF, MS Excel (including templates), HTML Active Reports
August 30, 2011, 04:34 PM
JRS
I appreciate the prompt response. I should have said that I mainly work with the text editor and not the GUI. My current program has comments that will be erased if I go into the GUI. Can you tell me how to do the above by going into the text editor. Thank you!! Smiler


7.7.03

OS/Oracle

Windows
Output:All
August 30, 2011, 04:56 PM
Dan Satchell
Search on "alternating color" in this forum and you will find a number of posts. Such formatting is performed in the StyleSheet using the BACKCOLOR attribute. Provide two colors instead of one and voila.

TYPE=DATA, BACKCOLOR=(RGB(255 255 223) RGB(201 217 254)), $



WebFOCUS 7.7.05
August 30, 2011, 05:32 PM
JRS
Alright, I really appreciate your help Dan...I do a quick search in the forum. Thanks! Smiler


7.7.03

OS/Oracle

Windows
Output:All
August 30, 2011, 05:33 PM
Dan Satchell
The method I outlined above will change color every time the final BY field in the request changes value. If you need to switch colors on a different BY field, then this is the syntax to use:

TYPE=DATA, BACKCOLOR=(BY=fieldx RGB(190 216 190) RGB(190 216 216)), $



WebFOCUS 7.7.05
August 30, 2011, 06:11 PM
JRS
quote:
The method I outlined above will change color every time the final BY field in the request changes value. If you need to switch colors on a different BY field, then this is the syntax to use:


TYPE=DATA, BACKCOLOR=(BY=fieldx RGB(190 216 190) RGB(190 216 216)), $




Dan,

The syntax works like a charm!!!! Thanks big time!!!


7.7.03

OS/Oracle

Windows
Output:All