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     Status Indicator - how to display color status indicator on each line of report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Status Indicator - how to display color status indicator on each line of report
 Login/Join
 
Member
posted
I see many people creating reports with a red,yellow, green status indicator... how do you do this? Do you need to use an image on each line of the report with a conditional if based on some field value? Or is there some built in way to do it in web focus? Visualization bars are not what I want. I don't what different lengths based on values I want same indicator.. just a circle or dot... with different color.


WebFOCUS 7.72
Windows, All Outputs
 
Posts: 4 | Registered: February 17, 2011Report This Post
Virtuoso
posted Hide Post
Hi Sue,

See the following:
  
-* File sue01.fex
DEFINE FILE CAR
SALESSTOP/A50 = IF SALES LT 10000 
                  THEN '<IMAGE SRC="/approot/focalpoint/red.gif">' 
                  ELSE '<IMAGE SRC="/approot/focalpoint/blue.gif">';
END
TABLE FILE CAR
PRINT SALES SALESSTOP AS ''
BY COUNTRY
BY CAR
BY MODEL
END

Assumption:
You have a WF project called "focalpoint" in which there are 2 images, "blue.gif" and "red.gif"
If your images are elsewhere, use the full URL to access them.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
Or you could have a text field, containing a single "bullet" character, and control the font size and color.

° = 248
■ = 254


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
To supplement Jack's reply, don't forget that you are not restricted to a particular font. However, the font that you specify MUST be available on the end users machine.
TABLE FILE CAR
PRINT SALES
      COMPUTE FLAG/A1 = IF SALES EQ     0 THEN 'B'
                   ELSE IF SALES LT 10000 THEN 'R'
                   ELSE IF SALES LT 15500 THEN 'A'
                   ELSE 'G'; NOPRINT
      COMPUTE IMGE/A1 = IF SALES NE 0 THEN HEXBYT(110, 'A1')
                   ELSE HEXBYT(32, 'A1'); AS ''
   BY COUNTRY
   BY CAR
   BY MODEL
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
  GRID=OFF, SIZE=9, $
  TYPE=DATA, COLUMN=IMGE, FONT=WEBDINGS, $
  TYPE=DATA, COLUMN=IMGE, WHEN=FLAG EQ 'R', COLOR=RED, $
  TYPE=DATA, COLUMN=IMGE, WHEN=FLAG EQ 'A', COLOR=ORANGE, $
  TYPE=DATA, COLUMN=IMGE, WHEN=FLAG EQ 'G', COLOR=GREEN, $
ENDSTYLE
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     Status Indicator - how to display color status indicator on each line of report

Copyright © 1996-2020 Information Builders