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.
I have a very standard SQL pass-thru report which has an ID column with a drilldown link to a detail report. Along with the ID column, I also have to pass the date from another column on the main report. I am facing issues with passing the date to the detail report.
Both reports have a simple SQL: Main report SQL: SELECT * FROM TABLE WHERE DATE = TRUNC(SYSDATE)-5
Sample main report: ID_NUM DATE NAME ADDR PHONE EMAIL ..... (Drilldown link)
MY drilldown statement: TYPE=DATA, COLUMN=ID_NUM, FOCEXEC=DETAIL_REPORT(ID_NUM = ID_NUM DATE = DATE), $
Detail Report SQL: SELECT * TABLE_B WHERE ID_NUM = &ID_NUM AND DATE = &DATE
I get the error:
(FOC1400) SQLCODE IS 907 (HEX: 0000038B)
: ORA-00907: missing right parenthesis
: Error context area: 017/09/20 00:00:00)
L (FOC1405) SQL PREPARE ERROR.
0 ERROR AT OR NEAR LINE 12 IN PROCEDURE threshold_report_detail
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
0 ERROR AT OR NEAR LINE 15 IN PROCEDURE threshold_report_detail
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
BYPASSING TO END OF COMMAND
I tried so many things with the date field, like passing DATE.EVAL in the FOCEXEC statement, also tried TO_DATE ('&DATE', 'YYYYMMDD') in the SQL of the detail report, but nothing works.. get a new error everytime...
How can I pass a date value successfully for the detail report to filter on?
Thanks in advance!This message has been edited. Last edited by: Nova27,
I used the &ECHO=ON to figure out the issue - since my date field was a date-time column, I Just used HDATE function to convert it to a date only column and then passed that to the SQL in the detail report.
I was using &ECHO=ALL and I think I wasn't really getting what I wanted to see.