COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: actcognosuser on 30 Apr 2015 10:00:28 AM

Title: How to display number in Digital format.
Post by: actcognosuser on 30 Apr 2015 10:00:28 AM
Hello all,

I am creating a dashboard/report studio report. I need to display a number in digital /time like format.

Is there a way to do this?Pls see attached image.

Title: Re: How to display number in Digital format.
Post by: CognosAnalytics on 30 Apr 2015 12:27:09 PM
Hello actcognosuser,
You will first need to get a digital font. I googled it and saw quite a few out there. Install it on the content manager server(s), active and standby. Then edit the global configuration on each to include this font in the list of fonts available to report studio. You can find more information in the installation and configuration guide for the Cognos Business Intelligence Server.

-Cognos810

Title: Re: How to display number in Digital format.
Post by: actcognosuser on 30 Apr 2015 12:45:23 PM
Thank you so much. But this would be a gobal change. is there a javascript which will provide the same function?
Title: Re: How to display number in Digital format.
Post by: CognosAnalytics on 30 Apr 2015 01:43:23 PM
Yes it will be a global change, in the sense that the font becomes available for your use in report studio. Only the text that you apply this new font to will show this new digital style font.
Using javascript, I may be wrong here and will let javascript experts to comment on it, you can definitely change the font of the text, BUT where will your browser fetch the font from? Lets say you install the font on your local machine, it may start working for you. All other users will need to have this font available on their machine. You will have to plan to distribute this font across your user base.
Title: Re: How to display number in Digital format.
Post by: bdbits on 01 May 2015 09:57:18 AM
Unless the user has the font locally available - or it is set up on the web server for download when the report runs - the local browser will likely substitute the font with something else. This isn't really a javascript issue, and certainly not a Cognos issue, but is just the way browsers normally handle fonts as defined in any web page's source.