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.
Does anyone know if you can reference a field name in an ACROSS-TOTAL Label?
In the following code there are multiple ACROSS-TOTALS for each instance of the first ACROSS field. Instead of all of the ACROSS-TOTALS having a label of "CAR Total", I would like "England Total", "France Total"....
Any help would be greatly appriciated. Thanks!
TABLE FILE CAR SUM DEALER_COST BY BODYTYPE ACROSS COUNTRY ACROSS CAR AS '' ACROSS-TOTAL AS 'CAR Total' ENDThis message has been edited. Last edited by: Kerry,
WF 7.6.6, Win 2K3 SP2
Posts: 4 | Location: Denver | Registered: March 27, 2007
I don't know if there's a simpler way but here's a potential solution. Its rather long, but essentially you save each total, combine crunch the hold files into one, then merge it into your original data set.
..Only done for Italy and England. Also The "Z_" would ensure that the total appears at the end of the columns (you can be creative and change it to something else)
-* Gather "title" info
TABLE FILE CAR
SUM DEALER_COST
COMPUTE TITLE/A20 = 'Z_ENGLAND TOTAL';
BY COUNTRY
BY BODYTYPE
WHERE COUNTRY EQ 'ENGLAND'
ON TABLE HOLD AS ONE
END
TABLE FILE CAR
SUM DEALER_COST
COMPUTE TITLE/A20 = 'Z_ITALY TOTAL';
BY COUNTRY
BY BODYTYPE
WHERE COUNTRY EQ 'ITALY'
ON TABLE HOLD AS TWO
END
TABLE FILE ONE
SUM DEALER_COST
BY COUNTRY
BY TITLE
BY BODYTYPE
ON TABLE HOLD AS THREE
MORE
FILE TWO
END
-* Data set to be merged
DEFINE FILE CAR
CAR_NAME/A20 = CAR;
END
TABLE FILE CAR
SUM DEALER_COST
BY COUNTRY
BY CAR_NAME AS 'TITLE'
BY BODYTYPE
WHERE COUNTRY EQ 'ENGLAND' OR 'ITALY'
ON TABLE HOLD AS CARS
END
TABLE FILE CARS
SUM DEALER_COST
ACROSS COUNTRY
ACROSS TITLE
BY BODYTYPE
MORE
FILE THREE
END
Erfan WF 7.6.9. Dev Studio/BID/Info Assist/Report Caster/MRE
I hear you, Matt. I wish WF allows column headings, across heading to have embedded fields just like the subhead/subfoot...
If it is only for cosmatic reason, you can start from here...
TABLE FILE CAR
SUM
SALES
BY BODYTYPE
ACROSS COUNTRY AS ''
ACROSS CAR AS '' ACROSS-TOTAL
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='TIMES NEW ROMAN',
SIZE=10,
$
TYPE=ACROSSVALUE,
ACROSS=1,
JUSTIFY=RIGHT,
$
TYPE=ACROSSVALUE,
ACROSS=2,
JUSTIFY=RIGHT,
$
TYPE=ACROSSTITLE,
ACROSS=1,
JUSTIFY=RIGHT,
$
TYPE=ACROSSTITLE,
ACROSS=2,
JUSTIFY=RIGHT,
$
ENDSTYLE
END
Hua
Developer Studio 7.6.11 AS400 - V5R4 HTML,PDF,XLS
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008