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.
With a little searching and creative thinking on your part, you can figure out a way to do that. You'll need to switch on user tracing, run the report and hold it, switch off tracing, process the trace file, hold it, and then present the resulting page.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Syntax: How to Use the Message Viewer Add the following WFServlet variable to your URL call for WebFOCUS:
IBIWF_msgviewer=optionwhere:
option
Is one of the following:
OFF
Disables the Message Viewer. When this option is disabled, you can still view informative messages or error messages for HTML reports from the view source option in your browser.
ON
Displays messages in a separate browser window.
ECHOON
Displays messages and lines in a separate browser window that are expanded and stacked for execution.
ECHOALL
Displays messages and lines in a separate browser window that are expanded and stacked for execution while also displaying all Dialogue Manager commands.
Note: The ON, ECHOON, and ECHOALL options are available for all output formats including HTML and PDF
If running from dev studio you can turn it on by using the option on the run button If running from a launch page add it as a hidden input variable
Adding ECHO=ALL will display the source code as a hidden comment at the end of the report.
If you want to actually display this content, you should be able to use JavaScript to walk the DOM and extract that portion of the page and insert it into a Text box.
Syntax: How to Use the Message Viewer Add the following WFServlet variable to your URL call for WebFOCUS:
IBIWF_msgviewer=optionwhere:
option
Is one of the following:
OFF
Disables the Message Viewer. When this option is disabled, you can still view informative messages or error messages for HTML reports from the view source option in your browser.
ON
Displays messages in a separate browser window.
ECHOON
Displays messages and lines in a separate browser window that are expanded and stacked for execution.
ECHOALL
Displays messages and lines in a separate browser window that are expanded and stacked for execution while also displaying all Dialogue Manager commands.
Note: The ON, ECHOON, and ECHOALL options are available for all output formats including HTML and PDF
If running from dev studio you can turn it on by using the option on the run button If running from a launch page add it as a hidden input variable
I hace already done that .. what evere u are saying . bit not getting the expected result. What to do ?
...if you're looking for devstudio feedback -- there's a dropdown next to the run button -click 'message viewer on'(for just -TYPE statements) or 'Display Command Lines'(for all code).
If you're looking for all code in browser 'view/source'...
The following is an example of the technique I was talking about:
-SET &ECHO=ALL;
TABLE FILE CAR
BY COUNTRY
END
-SET &ECHO=OFF;
-HTMLFORM BEGIN
<SCRIPT>
function getSource(ob){
var content = document.body.lastChild.textContent;
var sEnd = content.indexOf("amp;ECHO=OFF;") - 6;
ob.contentDocument.write('<PRE>' + content.substring(0, sEnd) + '</PRE>');
}
</SCRIPT>
<IFRAME src="about:blank" onload="getSource(this);"></IFRAME>
-HTMLFORM END
Suppose there are no command-tags besides the one WebFOCUS adds at the end, for IE you can use this:
-SET &ECHO=ALL;
TABLE FILE CAR
BY COUNTRY
END
-SET &ECHO=OFF;
-HTMLFORM BEGIN
<html>
<script>
function getSource() {
var _commentTags = document.getElementsByTagName("!");
alert(_commentTags[0].innerHTML);
}
</script>
<body onload='getSource();'>
</body>
</html>
-HTMLFORM END
-SET &ECHO=ALL;
TABLE FILE CAR
BY COUNTRY
END
-SET &ECHO=OFF;
-HTMLFORM BEGIN
<SCRIPT>
function getSource(ob){
var content = document.body.lastChild.nodeValue;
var sEnd = content.indexOf("amp;ECHO=OFF;") - 6;
ob.contentWindow.window.document.write('<PRE>' + content.substring(0, sEnd) + '</PRE>');
}
</SCRIPT>
<IFRAME src="about:blank" onload="getSource(this);"></IFRAME>
-HTMLFORM END
For even more fun, the following puts the source code into a TEXTAREA window which can be edited, and a button has been added which allows you to rerun the modified source code.
-SET &ECHO=ALL;
TABLE FILE CAR
BY COUNTRY
END
-SET &ECHO=OFF;
-HTMLFORM BEGIN
<div id='sourceViewer'>
<SCRIPT>
function getSource(ob){
var content = document.body.lastChild.nodeValue;
var sEnd = content.indexOf("amp;ECHO=OFF;") - 6;
ob.contentWindow.window.document.write('<textarea id="ta" style="height:100%;width:100%;">' + content.substring(0, sEnd) + '</textarea>');
}
function rerun(){
var objDoc = sourceCode.document ? sourceCode.document : sourceCode.contentDocument;
var code = objDoc.getElementById("ta").value;
var sourceViewer = document.getElementById("sourceViewer").innerHTML;
var adhocfex = "-SET " + "&" + "ECHO=ALL;\n" + code + "\n-SET " + "&" + "ECHO=OFF;\n-HTMLFORM BEGIN\n <div id='sourceViewer'>\n" + sourceViewer + "\n</div>\n-HTMLFORM END\n";
document.getElementById("IBIF_adhocfex").value = adhocfex;
return true;
}
</SCRIPT>
<IFRAME id="sourceCode" src="about:blank" onload="getSource(this);" frameBorder="0"></IFRAME><br />
<FORM action="/ibi_apps/WFServlet" method="POST" onsubmit="return rerun()">
<INPUT type="hidden" id="IBIF_adhocfex" name="IBIF_adhocfex" >
<INPUT type="submit" value="Rerun">
</FORM>
</div>
-HTMLFORM END