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.
One of my users is trying to write some code along these lines, so that the field name changes dynamically depending on the grouped values, if you see what I mean. I've tried to interpret this using CAR as follows, but it's missing a little something... Hope this makes sense - any help appreciated! :-)
-SET &NEWTITLE = IF BODYTYPE EQ 'CONVERTIBLE' THEN 'SOFTTOP' ELSE 'BODY-TYPE';
TABLE FILE CAR SUM DEALER_COST AS &NEWTITLE BY CAR BY COUNTRY ACROSS BODYTYPE END
malcolm magnesium
Posts: 2 | Location: UK | Registered: January 05, 2009
-SET &NEWTITLE = IF BODYTYPE EQ 'CONVERTIBLE' THEN 'SOFTTOP' ELSE 'BODY-TYPE';
DEFINE FILE CAR
BODYTYPE/A100 = IF BODYTYPE EQ 'CONVERTIBLE' THEN 'SOFTTOP' ELSE 'BODY-TYPE';
END
TABLE FILE CAR
SUM DEALER_COST
BY CAR
BY COUNTRY
ACROSS BODYTYPE
END
Thanks Mighty Max. It might help, I'll need to apply it to the real thing tomorrow. I'm not sure my example using Car was so great, I might need to refine it.
I'll report back on how I get along...
Thanks.
malcolm magnesium
Posts: 2 | Location: UK | Registered: January 05, 2009
-SET &NEWTITLE = IF BODYTYPE EQ 'CONVERTIBLE' THEN 'SOFTTOP' ELSE 'BODY-TYPE';
You cannot reference field names in Dialogue Manager commands. DM commands are executed before any data retrieval occurs so your initial approach won't work. What Max has suggested is what you need. Redefine the columns and then sort ACROSS those new values and you get the new values as column titles.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007