Focal Point
Run in New Window

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8981079291

October 25, 2006, 02:11 PM
Prarie
Run in New Window
I'm not sure why we needed it, but in 7.x when you run a Parameter report without a front end, you get this big blue page where the parameters are input and when you submit, the output goes in that same page unless you check "Run in New Window" Does anyone know if you can have it default to checked? Or is this a "new feature request" for a new feature I didn't request?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
I concur, the default of checked to run in a new window would be nice. One thing I've noticed is if your output is pdf and you run in new window, it sometimes comes up behind a blank screen. Not sure if this is an IB issue or a browser issue.


Leah
This kind of error (blank screen), I have seen with Adobe Reader 7, but not Adobe Reader 6. The PDF problems we have had have been dependant on Adobe Reader Version, interacting with Tomcat version.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
Prarie,

Try this:

1. Edit the C:\ibi\DevStudio71\ibi_html\javaassist\ibi\html\describe\autoprompt.xsl file if you are using stand-alone Developer Studio or C:\ibi\WebFOCUS71\ibi_html\javaassist\ibi\html\describe\autoprompt.xsl if you have WebFOCUS installed.

2. Find the following element:

Run in a new window

3. Make it checked by default by adding the checked modifier:

Run in a new window

You will need to recycle the WebFOCUS web application for the change to take effect.

If it works, you can still submit a new feature request if you like, because a change like this will probably not be preserved when you upgrade to a newer release. You would have to make the modification again after upgrading.

Let me know if this helps.

Joe
Prarie,

In my previous post, the html was interpreted instead of being displayed as is. What you are looking for in the autoprompt.xsl file is a checkbox named reportTarget with an id of idReportTarget. Add the checked attribute to this checkbox.


<input type="checkbox" name="reportTarget" id="idReportTarget"></input<><span>Run in a new window</span>


Joe
Mistyped it. Here it is corrected:

<input type="checkbox" name="reportTarget" id="idReportTarget"></input><span>Run in a new window</span>


Joe
And with the checked attribute:

<input type="checkbox" name="reportTarget" id="idReportTarget" checked ></input><span>Run in a new window</span>

Joe
Thanks...we'll give this a try...and I'll report back.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Tried that...and ended up with a blank page.
Must be missing something.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Here's how I got it to work:

1. Add the following 2 lines within the "function window_onload()"
var xnode = document.getElementById("ibi_requests").getElementsByTagName("requests")[0].getElementsByTagName("request")[0].attributes.getNamedItem("targetname");
xnode.nodeValue = "_blank";

2. Update function "checkbox1_onclick(ctrl)" { to say -
var xnode = document.getElementById("ibi_requests").getElementsByTagName("requests")[0].getElementsByTagName("request")[0].attributes.getNamedItem("targetname");
if (xnode.nodeValue == "_blank"){
xnode.nodeValue = "iframe1";
}
else xnode.nodeValue = "_blank";

3. Update the following tag to -

Sorry #3 should say -

INPUT id=checkbox1_0 type=checkbox value="New window" name=checkbox1 displaytext="New window" ElementToPaste="false" checked

With < and > on both ends. The HTML was interpreted.
prarie
its a setting in your admin console, configuration, parameter settings...
that's where you override that uglyy blue page (that was the default in 533 that everyone hated) and get it back to the regular way.
i can't remember the specifics...
but our site right now has IBIF_wfdescribe=OFF
and IBIF_describe_xsl = automprompt_top




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID