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.
WHenever i go into text editor and say COUNT (as seen below), if i run the report, it is correct. however, the next time i open the report in the GUI, AS will replace "COUNT" with "PRINT" and i lose the functionality of the count. Should i be doing something different so that AS doenst always change my report when i open it ?
SET BYDISPLAY = ON SET NODATA = -* File: IBFS:/PSG/WFC/Repository/PSG_Comcast_Custom_Reports/WFX/Report1.fex Created by WebFOCUS AppStudio TABLE FILE WFX_AD_JOB_DTLS COUNT WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.WORK_ORDER_NUMBER AS 'TOTAL_FINAL_ASSIGNED' BY WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.DIV_DESC BY WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.FLCTR_DESC BY WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.SITE_ALIAS BY WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.LAST_ASSIGNED_FULL_NAME BY WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.FINAL_ASSIGNMENT_DESC ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON ON TABLE SET STYLE *This message has been edited. Last edited by: BSBAL18,
AS Version: 8201 Gen: 10202016 Windows, All Outputs
Posts: 49 | Location: St. Louis | Registered: December 13, 2016
TABLE FILE WFX_AD_JOB_DTLS COUNT WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.WORK_ORDER_NUMBER AS 'TOTAL_FINAL_ASSIGNED'
COUNT is not a valid syntax in Focus. Should be
TABLE FILE WFX_AD_JOB_DTLS
SUM CNT.WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.WORK_ORDER_NUMBER AS 'TOTAL_FINAL_ASSIGNED'
or
PRINT CNT.WFX_AD_JOB_DTLS.WFX_AD_JOB_DTLS.WORK_ORDER_NUMBER AS 'TOTAL_FINAL_ASSIGNED'
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
I just reproduced this issue in AS 8105M, that looks like a bug to me. I suggest you open a support call.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
I thought that it was one of the code tightening made by AS reason why AS was changing the COUNT to PRINT to have a valid verb and keep the report working. But yes, according to doc it seems to be a bug...
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
I ran across this long ago. COUNT is valid, executable syntax. It's the editor that is misguided -- aware of the legacy syntax, but mistaken in how to map it to a currently-approved equivalent.
Just change
COUNT x as '...'
to
SUM
CNT.x as '...'
and move on.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Interestingly, InfoAssist+ doesn't have this problem. I can switch from SUM to PRINT, COUNT and LIST with no problems and the code generated is COUNT fieldname not SUM CNT.fieldname.
While I agree that AS is at fault, I also agree with Jack, switch to SUM CNT. and move on.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015