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.
Quite a long time here... Is there a way we can do the BYDISPLAY setting at column level?
Say In the below code, Country should be grouped and sorted(Same values should not repeat)... and CAR should only be sorted(Same values should repeat)
TABLEF FILE CAR
PRINT
CAR.BODY.SEATS
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
ON TABLE NOTOTAL
END
BYDISPLAY on globally or ON TABLE would not work for this? Any surprising direct options?This message has been edited. Last edited by: Ramkumar - Webfous,
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009
SET BYDISPLAY is global. You could do it with COMPUTE:
TABLEF FILE CAR
PRINT
COMPUTE COUNTRY_BY/A10 = IF COUNTRY EQ LAST COUNTRY THEN '' ELSE COUNTRY;
CAR
SEATS
BY COUNTRY NOPRINT
BY CAR NOPRINT
ON TABLE NOTOTAL
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
Eric, I don't know what you mean by "translate groupings to the database". COMPUTE statements occur after the data is retrieved so they are not translated to SQL.
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
Eric, I don't know what you mean by "translate groupings to the database". COMPUTE statements occur after the data is retrieved so they are not translated to SQL.
That's right... Compute will happen after the data retrieval and aggregations(groupings). What's different here?
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009
Francis, run the sql trace on your statement. I've found that even with computes, when the adapter comes across a command that it doesn't know how to translate, it will default ol to a webfocus managed join and not write group by commands into the sql. For this reason I try to avoid any syntax on an initial pass that I know doesn't translate. I've seen it happen whether I put the value on a compute or not.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013
I've never seen that occur with COMPUTE statements, I don't think it can happen.
TABLEF FILE RPT_RULES
SUM
COMPUTE RPT_ATTR_BY/A80 = IF RPT_ATTR EQ LAST RPT_ATTR THEN '' ELSE RPT_ATTR;
TYPE_IND
MIN.RULE_STR
BY RPT_ATTR NOPRINT
BY TYPE_IND NOPRINT
ON TABLE NOTOTAL
END
SELECT
T1.RPT_ATTR,
T1.TYPE_IND,
MAX(T1.RPT_ATTR),
MAX(T1.TYPE_IND),
MIN(T1.RULE_STR)
FROM
ENTRPT.CASH_EXP_RPT_RULES T1
GROUP BY
T1.RPT_ATTR,
T1.TYPE_IND
ORDER BY
T1.RPT_ATTR,
T1.TYPE_IND;
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
I had it happen to me when using the strong concatenation. Apparently the Oracle adapter doesn't support it. Even as a compute my group by's weren't translating down.
Maybe it was an issue with the concatenation then.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013