- Using AS 8.2.01 on Windows 10 - IE11. | |||
in Focus since 1988 |
quote: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
quote:Originally posted by JG:
/.1.1 and upquote: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
-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
-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
-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
Frank | |
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7 |