Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 71 | Registered: May 29, 2015Report This Post
Virtuoso
posted Hide Post
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report 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: 45 | Registered: October 07, 2015Report 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: 71 | Registered: May 29, 2015Report 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: 71 | Registered: May 29, 2015Report 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: 71 | Registered: May 29, 2015Report 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.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders