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] Printing over fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Printing over fields
 Login/Join
 
Gold member
posted
How to code a report to look like this

ENGLAND
CAR MODEL DEALER_COST
JAGUAR V12xke Auto 7,427
JAGUAR XJI2L Auto 11,194
...
FRANCE
CAR MODEL DEALER_COST
TRIUMP TR7 4,631
JAPAN
CAR MODEL DEALER_CODT
DATSUN 2 DOOR 2,626
TOYOTA COROLLA 2,888


Where the country print over the other fields?

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 61 | Location: New York City | Registered: July 20, 2006Report This Post
Expert
posted Hide Post
Have you thought about a SUBHEAD on a NOPRINTED COUNTRY.

There are many other ways as well.

You could try OVER as well.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Yes I had tired over

TABLE FILE CAR
PRINT COUNTRY AS '' OVER CAR MODEL DEALER_COST
END

But this yields

ENGLAND
CAR JAGUAR MODEL VI2XKE AUTO DEALER_COST 7,427
ENGLAND
CAR JAGUAR MODEL XJ12L AUTO DEALER_COST 11,194

it put the country over each record, where want it over each sort group.

Also you say there are many other ways as well, can you provide the code for one?
 
Posts: 61 | Location: New York City | Registered: July 20, 2006Report This Post
Expert
posted Hide Post
quote:
Have you thought about a SUBHEAD on a NOPRINTED COUNTRY.

Did you try SUBHEAD as suggested by Waz?

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
Member
posted Hide Post
Try this out

TABLE FILE CAR
PRINT
CAR
MODEL
DEALER_COST
BY COUNTRY NOPRINT PAGE-BREAK
ON COUNTRY SUBHEAD
"ON TABLE SET PAGE-NUM NOPAGE
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE = REPORT, GRID = OFF, $
ENDSTYLE
END


Webfocus 7.6.x
Windows 7
HTML, PDF, Excel
 
Posts: 16 | Location: Toronto, ON, Canada | Registered: June 24, 2009Report This Post
Master
posted Hide Post
@P.P Not going to work as you have written it. Sorry.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Member
posted Hide Post
Sorry....may I know the issue with my code?


Webfocus 7.6.x
Windows 7
HTML, PDF, Excel
 
Posts: 16 | Location: Toronto, ON, Canada | Registered: June 24, 2009Report This Post
Master
posted Hide Post
Did you actually try the code you suggested?

Because of misplaced quote marks the code ON TABLE SET PAGE-NUM NOPAGE appears as part of the answer set.

Second, you need to put
ON COUNTRY SUBHEAD
"<COUNTRY" 


Possibly you intended this, but didn't put your code between CODE and /CODE (both within square brackets) so it got mangled.

Here's your output:

PAGE 1 
  
CAR       MODEL           DEALER_COST 
ON TABLE SET PAGE-NUM NOPAGE 
JAGUAR   V12XKE AUTO            7,427 
JAGUAR   XJ12L AUTO            11,194 
JENSEN   INTERCEPTOR III       14,940 
TRIUMPH  TR7                    4,292 

This message has been edited. Last edited by: George Patton,


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Member
posted Hide Post
My bad... I forgot to put it inside the
CODE tags

I have executed and got the output before I pasted here...

Below is the code

TABLE FILE CAR
PRINT
CAR
MODEL
DEALER_COST
BY COUNTRY NOPRINT PAGE-BREAK
ON COUNTRY SUBHEAD
 "<COUNTRY" 

ON TABLE SET PAGE-NUM NOPAGE
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE = REPORT, GRID = OFF, $
ENDSTYLE
END

This message has been edited. Last edited by: P.P,


Webfocus 7.6.x
Windows 7
HTML, PDF, Excel
 
Posts: 16 | Location: Toronto, ON, Canada | Registered: June 24, 2009Report This Post
Virtuoso
posted Hide Post
jlsnyc,

Do you want each country on a different page?
If so, you should put the COUNTRY field in the HEADING and not the SUBHEAD in order to have the value of COUNTRY above the titles for CAR MODEL and DEALER-COST.

If not then I suggest the following:
  
-* File jlsnyc01.fex
TABLE FILE CAR
PRINT 
CAR AS ''
MODEL AS ''
DEALER_COST AS ''
BY COUNTRY NOPRINT
ON COUNTRY SUBHEAD
"<COUNTRY"
"CAR<+0>MODEL<+0>DEALER_COST"
ON COUNTRY SUBFOOT
" "
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE OFF
ON TABLE SET STYLE *
 INCLUDE=defltblu,$
-* Or any other style
TYPE=SUBHEAD, HEADALIGN=BODY, $
ENDSTYLE
END


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
  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] Printing over fields

Copyright © 1996-2020 Information Builders