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     [SOLVED] Subhead Blanks/Space

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Subhead Blanks/Space
 Login/Join
 
Platinum Member
posted
Hi,

I want my Subhead to look structured.
I got more than 1 subhead, and I want it to look like a table without borders, like
"car: "house: "kitchen: and I want the ":" to be underneath each other and the variables <... as well.

is there a command sothat I can arrange them?
I tried with
TYPE=SUBHEAD, ITEM=1, WIDTH=1.7, JUSTIFY=LEFT, WRAP = 1, $
but it lets me just decide how large the fields (for the variables for example) are.

Thanks

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


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Virtuoso
posted Hide Post
Something such as this ?

DEFINE FILE GGSALES
YR      /YY   = DATE;
UNIT97  /P8C  = IF YR EQ 1997 THEN UNITS      ELSE 0;
UNIT96  /P8C  = IF YR EQ 1996 THEN UNITS      ELSE 0;
DOL97   /P8C  = IF YR EQ 1997 THEN DOLLARS    ELSE 0;
DOL96   /P8C  = IF YR EQ 1996 THEN DOLLARS    ELSE 0;
BDG97   /P8C  = IF YR EQ 1997 THEN BUDDOLLARS ELSE 0;
BDG96   /P8C  = IF YR EQ 1996 THEN BUDDOLLARS ELSE 0;
END
TABLE FILE GGSALES
SUM
    UNIT97 NOPRINT
    UNIT96 NOPRINT
    DOL97  NOPRINT
    DOL96  NOPRINT
    BDG97  NOPRINT
    BDG96  NOPRINT
    COMPUTE UNITVAR  /P8C  = UNIT97 - UNIT96; NOPRINT
    COMPUTE DOLVAR   /P8C  = DOL97  - DOL96;  NOPRINT
    COMPUTE BDGVAR   /P8C  = BDG97  - BDG96;  NOPRINT
    COMPUTE UNITCPX  /A20V = 'Nb Units: '  | FPRINT(UNIT97,  'P8C', 'A10V'); NOPRINT
    COMPUTE DOLCPX   /A20V = 'Sales $: '   | FPRINT(DOL97,   'P8C', 'A10V'); NOPRINT
    COMPUTE BDGCPX   /A20V = 'Bdg $: '     | FPRINT(BDG97,   'P8C', 'A10V'); NOPRINT
    COMPUTE UNITPPX  /A20V = 'Nb Units: '  | FPRINT(UNIT96,  'P8C', 'A10V'); NOPRINT
    COMPUTE DOLPPX   /A20V = 'Sales $: '   | FPRINT(DOL96,   'P8C', 'A10V'); NOPRINT
    COMPUTE BDGPPX   /A20V = 'Bdg $: '     | FPRINT(BDG96,   'P8C', 'A10V'); NOPRINT
    COMPUTE VARUNITX /A20V = 'Var Units: ' | FPRINT(UNITVAR, 'P8C', 'A10V'); NOPRINT
    COMPUTE VARDOLX  /A20V = 'Var Sales: ' | FPRINT(DOLVAR,  'P8C', 'A10V'); NOPRINT
    COMPUTE VARBDGX  /A20V = 'Var Bdg: '   | FPRINT(BDGVAR,  'P8C', 'A10V'); NOPRINT

BY REGION NOPRINT

SUBHEAD
"<REGION <+0>1997"
"<UNITCPX<DOLCPX<BDGCPX"
" "
"1996 <+0>Variance"
"<UNITPPX<DOLPPX<BDGPPX<VARDOLX<VARDOLX<VARBDGX"
SUBFOOT
"------------------------------------------------------------------------------------"

ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     SIZE=10,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD, LINE=1, OBJECT=FIELD, ITEM=1, WIDTH=3.000, SIZE=12, COLOR=RGB(8 97 74), JUSTIFY=RIGHT, $
TYPE=SUBHEAD, LINE=1, OBJECT=TEXT,  ITEM=2, WIDTH=3.000, SIZE=12, COLOR=RGB(8 97 74), JUSTIFY=LEFT, $
TYPE=SUBHEAD, LINE=2, OBJECT=FIELD, ITEM=1, WIDTH=2.000, SIZE=12, STYLE=BOLD, JUSTIFY=RIGHT, $
TYPE=SUBHEAD, LINE=2, OBJECT=FIELD, ITEM=2, WIDTH=2.000, SIZE=12, STYLE=BOLD, JUSTIFY=CENTER, $
TYPE=SUBHEAD, LINE=2, OBJECT=FIELD, ITEM=3, WIDTH=2.000, SIZE=12, STYLE=BOLD, JUSTIFY=LEFT, $
TYPE=SUBHEAD, LINE=3, OBJECT=TEXT,  ITEM=1, WIDTH=6.000, COLOR=RGB(8 97 74), $
TYPE=SUBHEAD, LINE=4, OBJECT=TEXT,  ITEM=1, WIDTH=3.000, COLOR=RGB(8 97 74), $
TYPE=SUBHEAD, LINE=4, OBJECT=TEXT,  ITEM=2, WIDTH=3.000, COLOR=RGB(8 97 74), $
TYPE=SUBHEAD, LINE=5, OBJECT=FIELD, ITEM=1, WIDTH=1.000, $
TYPE=SUBHEAD, LINE=5, OBJECT=FIELD, ITEM=2, WIDTH=1.000, $
TYPE=SUBHEAD, LINE=5, OBJECT=FIELD, ITEM=3, WIDTH=1.000, $
TYPE=FOOTING, LINE=5, OBJECT=FIELD, ITEM=4, WIDTH=1.000, $
TYPE=SUBHEAD, LINE=5, OBJECT=FIELD, ITEM=5, WIDTH=1.000, $
TYPE=SUBHEAD, LINE=5, OBJECT=FIELD, ITEM=6, WIDTH=1.000, $
ENDSTYLE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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     [SOLVED] Subhead Blanks/Space

Copyright © 1996-2020 Information Builders