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     How to print in red negative numbers?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to print in red negative numbers?
 Login/Join
 
Member
posted
I'm work with WebFocus V7.6.3 / windows nt.
I'm spanish.

I want to know how can i print all numbers negative in my program in red ?
I can print in the format one by one , but is very hard.

I would like in only a sentence like this :

SET CENT-ZERO = ON
Is possible ?

Example :
ON TABLE SET STYLE *
....
TYPE=DATA,class=lnrojo, COLUMN=N5, WHEN=N5 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N6, WHEN=N6 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N7, WHEN=N7 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N8, WHEN=N8 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N9, WHEN=N9 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N10,WHEN=N10 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N11,WHEN=N11 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N12,WHEN=N12 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N13,WHEN=N13 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N14,WHEN=N14 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N15,WHEN=N15 LT 0, $
TYPE=DATA,class=lnrojo, COLUMN=N16,WHEN=N16 LT 0, $
....
ENDSTYLE


WebFocus 7.1.3
Windows NTPDF
EXCEL
HTML
HTMLTABLE
 
Posts: 2 | Registered: February 22, 2008Report This Post
Virtuoso
posted Hide Post
Ola MHM!
Todo bien?

As far as I know, there is no general command. But with a piece of Dialogue Manager you can overcome the problem. Notice the "-REPEAT" command. I put from 4 to 30 to show you that you do not have to code for exactly the number of columns.
  
-* File mhm1.fex
DEFINE FILE CAR
SALE1/I6=SALES - 2000;
SALE2/I6=SALES - 4000;
SALE3/I6=SALES - 6000;
SALE4/I6=SALES - 8000;
SALE5/I6=SALES - 10000;
SALE6/I6=SALES - 12000;
END
TABLE FILE CAR
PRINT
     SALE1
     SALE2
     SALE3
     SALE4
     SALE5
     SALE6
BY COUNTRY
BY CAR
BY BODYTYPE
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
$
-REPEAT #RED FOR &I FROM 4 TO 30;
TYPE=DATA, COLUMN=N&I, COLOR='RED', WHEN=N&I LT 0,$
-#RED
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=FOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END

Espero que sera un ayudo.


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
Member
posted Hide Post
What you are describing is called "Conditional Styling?" WebFOCUS allows you to use multiple condition for different situations (e.g. numeric rangles).

Are you using WebFOCUS Developer Studio (WFDS)or one of the Web tools (Report Assistant or Power Painter) to create your report?

Developer Studio's Report Painter makes this EXTREMELY easy to use Conditional Styling.

The steps are as follows, at least for the English version of WFDS. I have not worked with the Spanish version, so I don't know what the screen text would be.:
1. Open the desired report in WFDS Power Painter.
2. Select the column (or columns) requiring the condition.
3. Right-Click on the column, and select the Option menu item. The first tab will be "Style"
4. The first window block is labeled "Active Object" Unless you want the column-title to be RED, select "Column Data" from the pull down.
5. Click on the "Edit Conditions..." button, and then create a new condition (e.g. COND0001) with the rule that a column "is less than" 0, then click on OK. The new condition will appear in the "Applying to Condition" text box.
6. Select this condition, then click on the "Select Font..." button.
7. Click on the "Color" button, and select your desired color (e.g. Red).
8. Click on the "Ok" buttons to get out.
9. Save and run your report and see if you get the desired results.

I hope this helps. Good luck


WebFOCUS 53, 71, 76 - All Platforms
 
Posts: 15 | Location: Information Builders - Chicago | Registered: May 08, 2003Report 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     How to print in red negative numbers?

Copyright © 1996-2020 Information Builders