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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Bring Across titles below subhead

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Bring Across titles below subhead
 Login/Join
 
Member
posted
I have a report , which is split into multiple reports based on a field name(ON FIELD_NAME SUBHEAD ). I have an across field which appears above the entire report instead of getting displayed in each report. Please suggest me how to display the across fields in each split report which should be under subhead.

Example,

Class:9th Class Teacher: XYZ ---------------> subhead
English | Physics | Chemistry ---------------> across field should get displayed like this
Student
------------------------------------------
A 90 | 80 | 80
B 95 | 85 | 87
-------------------------------------------
Class:10th Class Teacher: ABCD ---------------> subhead
English | Physics | Chemistry ---------------> across field should get displayed like this
Student
------------------------------------------
A 90 | 80 | 80
B 95 | 85 | 87
-------------------------------------------
Class:12th Class Teacher: EFGH ---------------> subhead
English | Physics | Chemistry ---------------> across field should get displayed like this
Student
------------------------------------------
A 90 | 80 | 80
B 95 | 85 | 87

I am new to webfocus so please explain me clearly.



Thanks,
Johjen Mathew

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 7 | Registered: March 02, 2016Report This Post
Master
posted Hide Post
This should give you an idea:

TABLE FILE XYZ
PRINT 
GRADE NOPRINT
MARKS
BY TEACHER NOPRINT
ACROSS SUBJECT AS ''
BY STUDENT
ON TEACHER SUBHEAD
"Class: <GRADE Class Teacher: <TEACHER "
etc


You might want to rearrange that a bit depending on your data:

TABLE FILE XYZ
PRINT 
TEACHER NOPRINT
MARKS
BY GRADE NOPRINT
ACROSS SUBJECT AS ''
BY STUDENT
ON GRADE SUBHEAD
"Class: <GRADE Class Teacher: <TEACHER "
etc


or you could do it as a multi-verb request:

TABLE FILE XYZ
PRINT 
GRADE NOPRINT
BY TEACHER NOPRINT
PRINT
MARKS
BY TEACHER NOPRINT
ACROSS SUBJECT AS ''
BY STUDENT
ON TEACHER SUBHEAD
"Class: <GRADE Class Teacher: <TEACHER "
etc


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
Virtuoso
posted Hide Post
Joe,
The problem is that SUBHEAD is always below the TITLEs. If you want to have the TITLEs below the SUBHEAD you want to do away with the TITLEs and insert the value of the TITLEs into the SUBHEAD.
Here is an example using the CAR file:
  
-SET &ECHO=ALL;
-* File joem01.fex
TABLE FILE CAR
BY SEATS
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SAVE
END
-RUN
-SET &NSEATS=&LINES;
-RUN
DEFINE FILE CAR
-REPEAT #DEF FOR &I FROM 1 TO &NSEATS;
-READ SAVE,&S.&I
RC&I/D6=IF SEATS EQ &S.&I THEN RCOST ELSE 0;
-#DEF
END
 
TABLE FILE CAR
SUM 
-REPEAT #SUM FOR &I FROM 1 TO &NSEATS;
RC&I AS ''
-#SUM
BY COUNTRY NOPRINT
BY CAR AS ''
ON COUNTRY SUBHEAD
"Country:<COUNTRY"
-SET &L2='CAR';
-REPEAT #SHD FOR &I FROM 1 TO &NSEATS;
-SET &L2=&L2 || '<+0>' || &S.&I;
-#SHD
"&L2 "
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
 INCLUDE=ENDEFLT,
$
TYPE=SUBHEAD, HEADALIGN=BODY, 
$
TYPE=SUBHEAD, LINE=2, JUSTIFY=RIGHT, $
TYPE=SUBHEAD, LINE=2, ITEM=1, JUSTIFY=LEFT, $

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]Bring Across titles below subhead

Copyright © 1996-2020 Information Builders