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 created one procedure and then launched that procedure through HTML page. I have four parameters in the report. In some combinations records do no exist. In this case a new window popup with the following message
0 NUMBER OF RECORDS IN TABLE= 126 LINES= 126 ACCESS LIMITED BY PASSWORD 0 NUMBER OF RECORDS IN TABLE= 126 LINES= 126 0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
First thing it should not open the new window becuase if it finds records it displays in the same window. so it should display the above message in the same window as well. Instead of this message i would like to display the message in the same frame instead of opening a new page. i.e. Records do not exist against your search criteria. in the same frame.This message has been edited. Last edited by: Kerry,
Thank you Dave for your reply. I will try this. But it is opening in a new window. I have not mentioned it to open the result in a new window. why does it open a new window, any idea?
Besides checking the number of lines returned you'll probably also want to check that no error occurred. If I recall correctly the variable to check for that case is &FOCERRNUM - that's a bit harder to find, especially if you're (like me) used to errno.h in C, that's why I mention it here
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 :
Thank you everyone for the prompt reply. Now it works fine when i run individual procedure.
It is still opening a new window when I call the same procedure in HTML. I have created one HTML page and on a button Hyperlink property I have given the procedure name in the source and Frame name in the target. Not sure why it is opening a new window. Any idea?
If the report is opening in a new window, then that command is being issued at the time the report is being run and not by anything in the code that Dave supplied.
If you created your own HTML page, I would start looking there as that is probably where your issue is. Check the XML REQUEST tag to see where it is telling the report to open up.
Above is an example of xml from one of my reports. Notice how I have targetname="_blank". that is the request that tells the report in what window to put the report. I want it to go into a new window so I said _blank. To put the report into a frame on the page you would use the frame name for that element. If you want it to replace the current page you would use _parent.
If this isn't what you need then please also include your html code and focus code so that we can better understand what you are trying to acheive. Otherwise we are guessing and won't be able to effectively help you.
Eric Woerle WF 7.6.7 Reportting Server ETL 7.6.10 Dev Studio 7.6.7
Thanks everyone. No record message is resolved but it opens in a new window is still there. I am trying to resolve that but was busy in some other work. Will update here later
A more webfocus-centric approach. Same basic code, just a different implementation. May solve the empty HTML window issue.
quote:
TABLE FILE CAR PRINT * WHERE MODEL EQ 'POTATO'; ON TABLE HOLD AS MYREPORT END
-IF &LINES EQ 0 THEN GOTO NORECS ELSE GOTO DOREPORT;
-NORECS -TYPE +---------------------------------------------+ -TYPE | No records have been returned for this | -TYPE | request. Please try again later or with | -TYPE | different criteria. | -TYPE +---------------------------------------------+ -GOTO ENDIF
-DOREPORT TABLE FILE MYREPORT PRINT * END -GOTO ENDIF