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] ACROSS TITLE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] ACROSS TITLE
 Login/Join
 
Platinum Member
posted
How do I get TITLE1 in the same row as ID s




SET ACROSSTITLE = SIDE
DEFINE FILE CAR
TEST/A100 = 'ID';
END
TABLE FILE CAR
SUM
DEALER_COST
OVER
RETAIL_COST
OVER
RPM
ACROSS COUNTRY NOPRINT
ACROSS TEST AS ''
ACROSS COUNTRY AS ''

ON TABLE SUBHEAD
"HEADING1"
""
""
HEADING
"HEADING2"
"TITLE1"
-*ON TABLE PCHOLD FORMAT EXL2K

ON TABLE SET BYDISPLAY ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
     FONT='VERDANA',
     SIZE=9,
$
ENDSTYLE
END



  

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


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Virtuoso
posted Hide Post
I tried both your examples and it seems to me that the problem appears to be the use of OVER with ACROSS and ACROSSTITLE=SIDE.
Hence I thought of not using OVER, but simulating it:
  
DEFINE FILE CAR
-* Format all fields identically
DEALER_COST/D6=DEALER_COST;
RETAIL_COST/D6=RETAIL_COST;
RPM/D6=RPM;

-* Create labels for each field
TDCOST/A12='DEALER_COST';
TRCOST/A12='RETAIL_COST';
TRPM/A12='RPM';
END

TABLE FILE CAR
-* Output labels and values to a HOLD file
SUM TDCOST DEALER_COST TRCOST RETAIL_COST TRPM RPM
BY COUNTRY
ON TABLE HOLD AS GETIT FORMAT ALPHA
END
-RUN
-* Create an alternate master to the HOLD file, with 2 segments:
-* A parent segment for the country
-* A child segment for the occurences of label/value pairs
EX -LINES 7 EDAPUT MASTER,GETIT,C,MEM
 FILENAME=GETIT   , SUFFIX=FIX     
 SEGMENT=GETIT, SEGTYPE=S0
 FIELDNAME=COUNTRY, ALIAS=E01, USAGE=A10, ACTUAL=A10, $
 SEGMENT=VALS, PARENT=GETIT, SEGTYPE=S0, OCCURS=VARIABLE
 FIELDNAME=TFIELD, ALIAS=E02, USAGE=A12, ACTUAL=A12, $
 FIELDNAME=VALUE, ALIAS=E03, USAGE=D6, ACTUAL=A06, $
-RUN
-* Run the report from the HOLD file, the labels being a BY field, this simulates an OVER 
SET ACROSSTITLE = SIDE
DEFINE FILE GETIT
TEST/A100 = 'ID';
END
TABLE FILE GETIT
SUM VALUE
BY TFIELD AS ''
ACROSS COUNTRY NOPRINT
ACROSS TEST AS 'TITLE1'
ACROSS COUNTRY AS ' '

ON TABLE SUBHEAD
"HEADING1"
""
""
HEADING
"HEADING2"
ON TABLE SET HTMLCSS ON
ON TABLE SET BYDISPLAY ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
     FONT='VERDANA',
     SIZE=9,
$
ENDSTYLE
END
 

Good luck!


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
Platinum Member
posted Hide Post
Thank you Danny. Your Solution works Great!!


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Virtuoso
posted Hide Post
You're welcome!


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     [SOLVED] ACROSS TITLE

Copyright © 1996-2020 Information Builders