Focal Point
[CLOSED] Upgrade to 8.2.04: Issue with .STY Stylesheet

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

March 12, 2019, 12:08 PM
JulieA
[CLOSED] Upgrade to 8.2.04: Issue with .STY Stylesheet
Everyone,

We're attempting to upgrade to 8.2.04, and I thought I'd see if anyone has any ideas on this challenge before I open a case.

We have a custom style sheet with an extension of .sty. We've been using it since 7.7, I think although it predates my time using WebFocus which is the past four years.

When we migrated the stylesheet.sty file to 8.2.04, we ran into a strange color issue. It affects all our files. Our custom color does not appear for Series 0. Anytime Series 0 is used we get a purple shade of sorts, similar to the purple used by the legacy home page in lower releases.

Here's what I can say definitively:

We use an INCLUDE statement to place the appropriate colors on all our graphs, tables, etc.

Here is the affected part of the code:

 setFillColor(getSeries(0),new Color(Blue));
setFillColor(getSeries(1),new Color(Gold));
setFillColor(getSeries(2),new Color(Red));
setFillColor(getSeries(3),new Color(Green));
setFillColor(getSeries(4),new Color(Purple)); 


Series 0 has the correct RGB values (0-58-99) in the actual .sty file.

I changed the RGB values of Series 1 to those of Series 0. The color for Series 1 changed accordingly to the blue.

Based on the above, I ruled out the possibility of RGB values being converted incorrectly from 8.1.05 to 8.2.04. I also ruled it out because we use the same RGB values for that particular shade of blue in other parts of the portal and in tables where it renders correctly.

I tried to change Series 0 to another color altogether by inputting different RBG values. It did not change the color.

So, clearly Series 0 seems to be the issue.

To test another possibility, I omitted the "0" after Series. Nothing changed.

I reviewed the code further to determine if there is a duplicate line of code for setFillColor(getSeries(0),new Color(0,58,99)); There is not.

I spoke with our technical manager. She suggested opening a case, but like I said earlier, I just wanted to see if anyone had an idea before I opened a case later today.

Thanks in advance. The forum is always such a helpful community, and I've learned a lot all those who share solutions.

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.2.04
WebFocus 8.2.04

March 13, 2019, 11:53 AM
FP Mod Chuck
Julie

Did you change your default stylesheet in App Studio to be your custom stylesheet? You can also set the default stylesheet for InfoAssist from the client administration console under the infoassist properties.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 13, 2019, 03:42 PM
JulieA
We have not tried that as of yet. I found the setting with ease, but might you point us in the direction of finding the stylesheet.sty file in the directory so it can be chosen and set as the default?

When I open the Change Stylesheet setting, it only opens the predefined templates. I need to use our stylesheet.sty file which we created. I need to find its stored location. I know its full name. I might add we have a case going right now because InfoAssist is not working for us.


WebFocus 8.2.04
WebFocus 8.2.04

March 14, 2019, 11:23 AM
FP Mod Chuck
Julie

Copy your style sheet to this directory. C:\ibi\WebFOCUS82\ibi_html\javaassist\intl\EN\combine_templates and see if it shows up..


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 14, 2019, 12:01 PM
JulieA
Thank you, Chuck, for the filepath. I was able to place it there and changed the AdminConsole setting. It still did not solve the issue for us as we are working with InfoAssist functionality challenges, but it might help us in the future.


WebFocus 8.2.04
WebFocus 8.2.04