Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] graphtype=data option
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] graphtype=data option
 Login/Join
 
Gold member
posted
okay, perhaps I am just remembering one too many Summit presentations, but I thought there was a GRAPHTYPE (aka visualization within TABLE) option for the little "Consumer Reports" circles with colors (Green/yellow/red)?

Since it is a PITA to add .gif files in our environment, if there is anything already built into AppStudio 8.2.1, it would be appreciated.

Thanks in advance.

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 64 | Registered: May 29, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
 
Posts: 1720 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Silver Member
posted Hide Post
If your output is HTML, you could do something using Charsets and define them as opposed to using images:

  


-SET &GREEN_ARROW_UP='<span class="Grnarrowup" style="color:008000;font-size:100%;">&|#x25B2;</span>';
-SET &RED_ARROW_DOWN='<span class="Redarrowdn" style="color:FF0000;font-size:100%;">&|#x25BC;</span>';
-SET &YELLOW_CIRCLE='<span class="Yellowcircle" style="color:FFFF00;font-size:100%;">&|#x25CF;</span>';


DEFINE FILE CAR
INDICATOR/A255 = IF SEATS EQ 2 THEN '&GREEN_ARROW_UP'
ELSE IF SEATS EQ 4 THEN '&RED_ARROW_DOWN'
ELSE IF SEATS EQ 5 THEN '&YELLOW_CIRCLE'
ELSE '';
END

TABLE FILE CAR
PRINT
     CAR.BODY.SEATS
     CAR.BODY.INDICATOR
BY  CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE SET BYDISPLAY ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET CACHELINES ON
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=DATA,
     COLUMN=N3,
     JUSTIFY=CENTER,
$
ENDSTYLE
END


This message has been edited. Last edited by: Mike Williams,


WF Version 8105
 
Posts: 38 | Registered: October 07, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
Babak, thanks for reminding me how brilliant Susan is (and how I much I miss her on this forum). Mike- this is really clever: code works fine, but I didn't get any color- just the characters. Thanks, folks...


WebFOCUS 8
Windows, All Outputs
 
Posts: 64 | Registered: May 29, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
quick note: added color to the stylesheet- that did the trick:

TYPE=DATA, COLUMN=N3, JUSTIFY=CENTER, color=green, when= seats eq 2, $
TYPE=DATA, COLUMN=N3, JUSTIFY=CENTER, color=red, when= seats eq 4, $
TYPE=DATA, COLUMN=N3, JUSTIFY=CENTER, color=yellow, when= seats eq 5, $

Thanks again....


WebFOCUS 8
Windows, All Outputs
 
Posts: 64 | Registered: May 29, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
or, you can just add the # to the color codes Mike provided:

-SET &GREEN_ARROW_UP='&|#x25B2;';
-SET &RED_ARROW_DOWN='&|#x25BC;';
-SET &YELLOW_CIRCLE='&|#x25CF;';

Again, thanks to Mike and Babak- always a pleasure.


WebFOCUS 8
Windows, All Outputs
 
Posts: 64 | Registered: May 29, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
Babak, thanks for reminding me how brilliant Susan is (and how I much I miss her on this forum). Mike- this is really clever: code works fine, but I didn't get any color- just the characters. Thanks, folks...

Babak: I agree, Susannah is missed but her legacy lives on. "FOC_RETD"
Mike: You can set the colors in the 'class'.


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
 
Posts: 3045 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] graphtype=data option

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.