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.
Hope you guys can help me out, I encountered error (FOC160) THE OPTION AFTER THE WORD 'FORMAT' IS INVALID: WFFMT on the following code.
quote:
TABLE FILE CUST SUM 'CUST.CUST.MALE' AS 'Male' 'CUST.CUST.FEMALE' AS 'Female' BY 'CUST.CUST.AGERANGE' AS 'Age Range' ON TABLE SUBHEAD " " " " HEADING "APPLICATION APPROVED FROM <+0>&dateFrom <+0>TO<+0> <+0>&dateTo" " " "AGE VS GENDER" " " FOOTING " " " " " " "Private & Confidential" "Report Generated On <+0>&DATEtrDMYY<+0> " WHERE CUST.CUST.IPFDAT NE 0; WHERE J0.APPL.ANAVST EQ '009'; WHERE STDT GE DATEFROM; WHERE STDT LE DATETO; WHERE CUST.CUST.IPFDAT NE 0; ON TABLE SET PAGE-NUM ON ON TABLE ROW-TOTAL/I11 AS 'Total' ON TABLE SUMMARIZE AS 'Total' ON TABLE PCHOLD FORMAT &WFFMT ON TABLE SET HTMLCSS ON
&WFFMT is obtained from a HTML select with the name of WFFMT.
Thanks and hope to hear from you guys.
Regards, Kevin TongThis message has been edited. Last edited by: Kevin Tong,
WebFOCUS 7.6.9 Windows 2003, all output
Posts: 32 | Location: Malaysia | Registered: December 29, 2009
before TABLE FILE and run the whole thing. If you still get the error message, it sould be very simple to determine exactly what code is being processed after &WFFMT have been resolved.
Kevin, If you picked 'User' in the output type you have a choice of which outputs you would like to have for any given report:
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>,<Excel 2000,EXL2K>).Select Output.
This line of code will provide a drop down with the output choices of HTML, PDF, or Excel 2000. It will have a heading in the auto prompt that says "Select Output". All of the 'Periods' in the line of code are required for this to work properly. The other option would be to create an amper variable called &WFFMT. Use a -DEFAULT and a -SET with an if statement to allow for the different output types. Example:
-DEFAULT &WFFMT_out = 'XL';
-SET &WFFMT = IF &WFFMT_out EQ 'HT' THEN 'HTML' ELSE IF &WFFMT_out EQ 'XL' THEN 'EXL2K' ELSE 'HTML';
ON TABLE PCHOLD FORMAT &WFFMT
I hope this helps... Erin P
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files