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     Field Formatting in Report Headers

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Field Formatting in Report Headers
 Login/Join
 
Silver Member
posted
I have placed a defined field from my report in my report header. The field is formatted as packed numeric with comma inclusion and floating dollar sign (P22.2C!D) but when I place the field in the report header the comma inclusion and floating dollar is dropped. I've tried <+0> in front of the field in the header and can't get it to work.

Any ideas?

Thanks in advance for helping me out on this!


Linux x86
Apache
Excel, CSV, HTML, PDF
 
Posts: 31 | Registered: September 29, 2010Report This Post
Expert
posted Hide Post
It seems to work in this test:

DEFINE FILE CAR
NUMBER1/P22.2C!D = DEALER_COST * 123.45; 
END

TABLE FILE CAR
SUM
SALES
BY COUNTRY

ON TABLE SUBHEAD
"REPORT HEADING: <NUMBER1"

HEADING
"PAGE HEADING: <NUMBER1"
END

I see "PAGE HEADING: $4,672,952.85" in the page heading.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Can you post your code please.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Silver Member
posted Hide Post
 
-* File rpt2_avg_basketsize_web.fex


-****************************************
-* kadkins 05/25/2011                   *
-****************************************

-INCLUDE setuser.fex

DEFINE FILE TRANSHISTORY
d_today/YYMD=&YYMD;
d_trans1/YYMD=DATEADD(d_today,'D',-1);
d_trans3/YYMD=DATEADD(d_today,'D',-3);
d_trans7/YYMD=DATEADD(d_today,'D',-7);
d_trans8/YYMD=DATEADD(d_today,'D',-8);
d_trans10/YYMD=DATEADD(d_today,'D',-10);
d_trans14/YYMD=DATEADD(d_today,'D',-14);
d_transdate/YYMD=HDATE(TRANSHISTORY.TRANSHISTORY.TRANSACTIONDATE, 'YYMD');
d_cvtcust/A20=EDIT(TRANSHISTORY.TRANSHISTORY.CUSTOMERID, '99999999999999999999');
d_trimcust/A9=TRIM('L', d_cvtcust, 20, '0', 11, 'A9');
d_ncust/I9=EDIT(d_trimcust);
d_debits/P22.2=
IF TRANSHISTORY.TRANSHISTORY.TRANSACTIONTYPE EQ '5' OR '16'
THEN 1* TRANSHISTORY.TRANSHISTORY.TRANSACTIONAMT
ELSE 0;
d_credits/P22.2=
IF TRANSHISTORY.TRANSHISTORY.TRANSACTIONTYPE EQ '4' OR '17'
THEN -1* TRANSHISTORY.TRANSHISTORY.TRANSACTIONAMT
ELSE 0;
d_netsales/P22.2=d_debits + d_credits;
END
TABLE FILE TRANSHISTORY
BY TOTAL COMPUTE d_basket/P22.2C!D = ( TOT.TRANSHISTORY.TRANSHISTORY.d_netsales ) / ( CNT.TRANSHISTORY.TRANSHISTORY.INVOICENUM ); NOPRINT
 AS 'Average Basket:'
HEADING
"Basket By Date: <+0>$<d_basket "
WHERE ( TRANSHISTORY.TRANSHISTORY.d_ncust GT 20000 ) AND ( TRANSHISTORY.TRANSHISTORY.d_transdate GT &d_transdate );
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,
     STYLE=UNDERLINE,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     SIZE=12,
     COLOR='BLUE',
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     SIZE=12,
     STYLE=BOLD+UNDERLINE,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     SIZE=12,
     STYLE=BOLD+UNDERLINE,
$
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,
$
TYPE=REPORT,
     COLUMN=N1,
     SQUEEZE=1.430556,
$
ENDSTYLE
END


Linux x86
Apache
Excel, CSV, HTML, PDF
 
Posts: 31 | Registered: September 29, 2010Report This Post
Expert
posted Hide Post
Seems to work:

TABLE FILE CAR
BY TOTAL COMPUTE d_basket/P22.2C!D = ( TOT.SALES ) / ( CNT.CAR ); NOPRINT
 AS 'Average Basket:'
HEADING
"Basket By Date: <+0><d_basket "

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,
     STYLE=UNDERLINE,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     SIZE=12,
     COLOR='BLUE',
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     SIZE=12,
     STYLE=BOLD+UNDERLINE,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     SIZE=12,
     STYLE=BOLD+UNDERLINE,
$
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,
$
TYPE=REPORT,
     COLUMN=N1,
     SQUEEZE=1.430556,
$
ENDSTYLE
END


Result in png image:



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
But... it's not. Frowner


Linux x86
Apache
Excel, CSV, HTML, PDF
 
Posts: 31 | Registered: September 29, 2010Report 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     Field Formatting in Report Headers

Copyright © 1996-2020 Information Builders