Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Error setting display format when using SQL translator.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Error setting display format when using SQL translator.
 Login/Join
 
<Derek>
posted
I'm using the SQL translator to create a report. The user selects a display format on an html page and that is passed into the .fex. However, the .fex is not creating the report in the proper format or at all. I am receiving this message...
"No HTML Output!
0 NUMBER OF RECORDS IN TABLE= 15 LINES= 15
0 PDF FILE SAVED ..."
It works if I do a simple report using the WebFOCUS language but not when I try to use the SQL translator. I couldn't find anything in the documentation that explains how to set a display format when using sql queries. I found the TABLE FILE SQLOUT PRINT * recommendation somewhere on these boards but it doesn't seem to work. Here is my code...

-* File doc_count.fex

-GOTO &DOCTYPE;

-COPYRIGHTS
SET SQLENGINE=SQLMSS
SQL SQLMSS
SELECT Year(DateAdd("m",3,[Approval_Date])) AS FY,
Count(SANDIA_COPY_RIGHT_NUMBER) AS [Count of Coprights] FROM TBLCO_BASE WHERE (((APPROVAL_DATE) Is Not Null)) GROUP BY Year(DateAdd("m",3,[Approval_Date]))
ORDER BY Year(DateAdd("m",3,[Approval_Date])) DESC; TABLE FILE SQLOUT PRINT * ON TABLE HOLD FORMAT &FMT END -GOTO DONE


-PATENTS
SET SQLENGINE=SQLMSS
SQL SQLMSS
SELECT Year(DateAdd("m",3,[IssDate])) AS FY, Count(PatNumber) AS [Count of

Patents Issued]
FROM TBLDOC_COUNTRY_APPS
WHERE (((IssDate) Is Not Null))
GROUP BY Year(DateAdd("m",3,[IssDate])) ORDER BY Year(DateAdd("m",3,[IssDate])) DESC; TABLE FILE SQLOUT PRINT * ON TABLE HOLD FORMAT &FMT END -GOTO DONE

-DONE
END
 
Report This Post
Silver Member
posted Hide Post
you might change:

ON TABLE HOLD FORMAT &FMT

to

ON TABLE PCHOLD FORMAT &FMT


the HOLD will hold it in the agent workspace on the webfocus reporting server, PCHOLD sends the output to the client.

hth,

drew
 
Posts: 46 | Location: San Francisco, California | Registered: April 14, 2003Report This Post
<Derek>
posted
Hi Drew,

I tried that and now I'm receiving a different error. I get the windows cannot open this file box. File: WFServlet[1]. Then it tries to find the right program to open it. I click OK and get HTTP 400 - Bad Request
Internet Explorer
This is what the URL looks like...
http://shell.windows.com/fileassoc/0409/xml/redir.asp?Ext=ƘĀ
 
Report This Post
<Derek>
posted
Drew,

I figured it out. I should have been using...

TABLE FILE SQLOUT
PRINT *
ON TABLE SET ONLINE-FMT &FMT

Thanks for the help.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Error setting display format when using SQL translator.

Copyright © 1996-2020 Information Builders