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.
what we do here is build 3 separate webqueries, and then phyically copy 2 of them onto the excel page of the first one. save it. then refresh data for all of them. works every morning like a charm.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
A possible alternative would be to build a combination of your data requirements into a single table and then use FML to construct the output into EXL2K.
I have this example which may help you. It uses a dynamic FML technique to determine what FOR statements you would require (which helps to make it future proof?) and you would have to analyse your data before you start coding to determine how best you can achieve your end report.
Copy and paste this into a new fex and run it to see the output -
SET HOLDLIST = PRINTONLY
APP FI FMLHOLD DISK FMLHOLD.FTM
-RUN
TABLE FILE CAR
SUM COMPUTE TABLE/A10 = 'CAR';
CAR/A30
DCOST/D12.2
RCOST/D12.2
BY CAR NOPRINT
ON TABLE HOLD AS FMLHOLD
END
-RUN
APP FI FMLHOLD DISK FMLHOLD.FTM (APPEND
-RUN
TABLE FILE GGSALES
SUM COMPUTE TABLE/A10 = 'GGSALES';
PRODUCT/A30
DOLLARS/D12.2
UNITS/D12.2
BY PRODUCT NOPRINT
ON TABLE HOLD AS FMLHOLD
END
-RUN
TABLE FILE FMLHOLD
BY TABLE NOPRINT
BY PRODUCT
ON TABLE SAVE AS COLUMNS FORMAT ALPHA
END
-RUN
-? &
-SET &Cnt = 0;
-SET &Iter = &LINES;
-REPEAT :Loop1 &Iter TIMES;
-READ COLUMNS, &Column&Cnt.EVAL
-SET &Cnt = &Cnt + 1;
-:Loop1
-RUN
TABLE FILE FMLHOLD
SUM DOLLARS AS 'Column 1'
UNITS AS 'Column 2'
BY TABLE NOPRINT SKIP-LINE
FOR PRODUCT
-* --------------------------
-* Here we repeat the FOR statements as many times as there are column values
-* We also build the RECAP for the Total line
-* --------------------------
-SET &Cnt = 0;
-SET &TotalLine = '';
-REPEAT :Loop2 &Iter TIMES;
'&Column&Cnt.EVAL' WHEN EXISTS LABEL LABEL&Cnt.EVAL OVER
-SET &TotalLine = IF &Cnt EQ 0 THEN 'LABEL&Cnt.EVAL' ELSE &TotalLine | ' + LABEL&Cnt.EVAL';
-SET &Cnt = &Cnt + 1;
-:Loop2
RECAP YTOTAL = &TotalLine; AS 'Total'
ON TABLE PCHOLD FORMAT EXL2K
END
Good luck
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, 2004
I executed your code in the server, so I might be a bad configuration problem, becasu from Developer Studio in local mode, I can run it without problem
Anyway.... the execution returns fields from table car and ggorder. Car's fields are ok, but ggorder's fields are all like ########
Why?
____________________________________________ Ruben Rueda Consultant Information Builders Iberica
If you don't want to use Dev Studio (or can't because you don't have it?) then try putting it into ../ibi/apps/baseapp/multiexcel.fex and then use the URL