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 tree control that is chained to a dropdown both being populated by procedures.
The problem I'm having is once the dropdown box has data in it (because a tree item was selected), when I click an item in the tree that returns 0 records in the chained dropdown, the dropdown is not being cleared. It will update, but not clear.This message has been edited. Last edited by: Kerry,
No Francis, just the IB standard XML results that you would get with normal PCHOLD FORMAT XML that has records. This just provides a "fudge" to return an empty but still valid XML document back to the IBIRLS3.JS function instead of a normal HMTL page stating "EDA NO DATA".
Think of it as the equivalent of a custom HTML page stating no records returned.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
When I run the procedure with your suggestion I get:
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
I also tried the 'SET EMPTYREPORT ANSI' and it returned a single row like you said, but my dropdown still retained the previous value and did not clear. Seems like an empty row would clear it, but apparently not.
If you get the error as you describe then it is likely that you already have EMPTYREPORT set to ON. Because this setting will give you an empty report AND my suggestion would also give you another then the result is the two header error.
The ANSI setting that Francis quotes is one that we always forget and it does have excellent uses.
Having said all of that, I have just run the following code in 7.7.03 and it produces an empty XML which is not what I expected. The previous suggestion was one that I have used with success in 7.6.10 but perhaps I need to revisit for 7.7.0x?
TABLE FILE CAR
SUM FST.COUNTRY
BY COUNTRY
WHERE COUNTRY EQ 'XXXX'
ON TABLE SET EMPTYREPORT OFF
ON TABLE PCHOLD FORMAT XML
END
Once your XML is sorted, I would suggest that you debug the JavaScript processing using the correct tool for your browser and stepping through the creation of the return and subsequent processing of the XML from the server. This should allow you to view what the xmlDoc variable is within the JavaScript and understand what is not happening in your situation.
Turning on the Servlet trace in the admin console and looking at the trace (at the bottom should be the XML being returned from the AJAX call) might give you another possibility of understanding the problem but my preferred method would be developers tool within the browser.
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004