Colors in custom reports

Exchange HTML report templates between users.
Post Reply
Snucke
Posts: 9
Joined: Tue Sep 27, 2005 12:28 am

Colors in custom reports

Post by Snucke »

When I use a template for the html reports, I cant change the report colors from the options/reports tab. The changes have no effect except "html text" which alters all text and I assume its because I have to put some vars in the template file like %itemcolor% etc. Is there a list of these vars somewhere in the docs?

This is all I can find:

Color palette
You may customize color scheme for the HTML reports. The following elements have customizable colors (you may change both fore- and background colors):

underlaying layer;
table header;
test items;
system messages;
HTML links;
Visited HTML links;
Active HTML links;

/Rob
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

When I use a template for the html reports
Template for "Custom HTML report", right?
The changes have no effect except "html text" which alters all text
Not sure I understand you. "Color scheme" option accessible for any HTML report:
- HTML
- Compact HTML
- Custom HTML
- Dashboard
Is there a list of these vars somewhere in the docs?
Sure. Quote from the manual (end of "Custom HTML report" section)
Also in any section (header, footer, test items, etc) of the Custom HTML report you can use 2 contents specific macro variables:

- %ItemColor% - text color
- %Background% - background color

These varaibales are "contents specific" because value of the varaible depends on the item that uses variables. E.g. if you use these variables in "Folder item" section, they will represent colors those was specified for the folder item (see Color Schemes dialog). If you use these variables for "Good" tests, they will represent colors those were specified for tests with "Good" status. And so on...
Regards
Alex
Snucke
Posts: 9
Joined: Tue Sep 27, 2005 12:28 am

Report settings

Post by Snucke »

Hi Alex,

My mistake, I thought I HAD to set the colors in the report settings but I discovered that I could hard code them into the custom html template just like that :D

BUT, now we have a problem with the graphs path. We would like to automate the task of creating reports (works fine) and when the report is created (including the graphs) it will be transfered to a web page for display. The problem is that the path to each graph is wrong (for webpages) in the auto-created html report since the value from Options/Reports/Folder_for_images is getting a backslash at the end by default. I´m using the path ./images to get a non local path but when I click OK, there´s a \ added so the path to the graph in the html page is ./images\filename.gif. This is not gonna work on the webserver.

Any ideas on how to get around this?

/Rob
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I assume you are talking about Log Analyzer, right?
Try this version: www.ks-soft.net/download/la504d.zip

Regards
Alex
Snucke
Posts: 9
Joined: Tue Sep 27, 2005 12:28 am

yes!

Post by Snucke »

Works like a charm, the backslash is stripped in the html file. :D

Thanks Alex!

/Rob
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome :)
Post Reply