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.
My users want an excel spreadsheet where every row in the table is a row on the report. No problem. Today they tell me I need to join to another table that is one to many (up to 10 rows on the table we’re joining to for each record on the primary table), and each of the rows in the joined table needs to be a column on the excel spreadsheet (instead of a row). So, for each account we still only have 1 row, but we may have 10 extra columns if there are 10 rows in the joined table. I can force it to always be 10 columns (in case there are only 3 rows for example on the joined table) if that is easier.
How would I do this? Make a row a column without it getting super complicated? In the table we are joining to, they would like the account # that is found as one field in the data to be the column heading and the data in the field will be the amount for that account #. Both of these fields are in the table we are joining to.
Have you considered the McGyver technique and a series of defines? Would it suit your needs. Can the columns be collapsed or is the data unique in each.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
I've heard of the Mcgyver technique, but I've never seen it or used it. What do you mean by "can the columns be collapsed"? The data in the columns can be unique or is the data unique in each ... are you meaning the table I'm joining to? It is possible that the data may NOT be unique in the table I'm joining to (I'm still trying to get confirmation on this).
Across was what I thought I would use but I get an error (FOC031) THE MAXIMUM NUMBER OF 'ACROSS' VALUES HAS BEEN EXCEEDED. I've never used across before, so I've been reading about it to see what I'm doing wrong.
this is the master for the 2nd file. I join to it using lumpsumid. The combo of lumpsumid and srceacctnbr are unique. I'm grabbing srceacctnbr and srceamt for my excel spreadsheet from this table.
Here's a CAR-based example that may give you an idea or two.
TABLE FILE CAR
SUM COUNTRY
BY COUNTRY NOPRINT
ON TABLE HOLD AS H001
END
TABLE FILE CAR
SUM
WHEELBASE
COMPUTE WBNO/I4 = IF COUNTRY EQ LAST COUNTRY THEN WBNO + 1 ELSE 1;
BY COUNTRY
BY WHEELBASE NOPRINT
ON TABLE HOLD AS H002
END
JOIN COUNTRY IN H001 TO ALL COUNTRY IN H002 AS J1
TABLE FILE H001
SUM
WHEELBASE
BY COUNTRY
ACROSS WBNO
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Pam, So you want for each record in the first file all the SRCEAMT fields from the second file on the same row. You can do the following: TABLE FILE NBTBLSRC LIST SRCEAMT BY LUMPSUMID ON TABLE HOLD AS PAM FORMAT FOCUS INDEX LUMPSUMID END JOIN LUMPSUMID IN firstfile TO ALL LUMPSUMID IN PAM AS A_ TABLE FILE firstfile SUM fieldsfromfirstfile BY LUMPSUMID SUM SRCEAMT ACROSS LIST AS '' BY LUMPSUMID 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, 2006