Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 19, 2007, 01:21 PM
John Sajczuk
thanks.... it looks like it is exactly where I need to change the values...
again, thanks
June 19, 2007, 01:24 PM
Francis Mariani
Be careful! Make a backup! Also, depending on how the webapp was defined in the Web container app (IIS, Tomcat, etc.) you may need to recycle the Web container app for the change to be recognized.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 19, 2007, 02:26 PM
John Sajczuk
we use AIX with WebSphere so I believe we have to "recycle"..
as to backing up, based on how I type, I always backup.
Thanks again.
June 20, 2007, 10:21 AM
John Sajczuk
Server was re-cycled but I do not see the changes when I view source!
any ideas?
June 20, 2007, 10:32 AM
Francis Mariani
OK, I don't know the correct terminolgy here. The app that's defined to the web container app - is it pointing to the app folder (C:\ibi\WebFOCUS53\webapps\webfocus53), or the web archive file (O:\ibi\WebFOCUS53\webapps\webfocus53.war)?
If it's pointing to the web archive file, the file needs to be recreated, or you can change the web app definition to point to the app folder.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 20, 2007, 10:41 AM
John Sajczuk
We point to the web folder...
Our WebSphere techies do the recycle.
June 20, 2007, 10:50 AM
Francis Mariani
Well, I'm flummoxed. dhagen may be able to help.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 20, 2007, 11:16 AM
Francis Mariani
perhaps there's a cache in WebSpehere that needs emptying...
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 20, 2007, 12:03 PM
John Sajczuk
in retrospect, i really didn't describe where i was trying to get this to work correctly.. My apologies.
when you create an output window as a "LINK"... this is were I want to control the popup.
does this make a difference?
June 20, 2007, 12:27 PM
Francis Mariani
John, what behaviour are you trying to modify?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 20, 2007, 01:23 PM
John Sajczuk
one of the options that you have for content are "links". you can list multiple fexs that a user can launch.
these links are what i want to control.
June 20, 2007, 02:07 PM
Francis Mariani
Yes, John, but what is it you want to control in the links?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 20, 2007, 03:01 PM
John Sajczuk
when a user clicks on a report link, they get a full access window, I wish to limit the window the report opens in. actually any report that is executed after a user gets a screen (drill downs, URLs, etc.) i would like to control so that there is never a location/address, toolbar or menubar.
June 20, 2007, 11:52 PM
Francis Mariani
John, you *may* be able to do this by altering some JavaScript instead of the JSP files.
I created a block with some Liks in a BID view. This is the trail I've followed so far:
Click a Link hyperlink.
Function showPopupNoTree in file C:\ibi\WebFOCUS53\ibi_html\javaassist\worp\js\menu\worp_menu-adapter.js is triggered.
Function showPopupNoTree calls function showMenu in file C:\ibi\WebFOCUS53\ibi_html\javaassist\worp\js\menu\worp_menu.js.
The line eval(onClickEvent); in function showMenu calls openLink in file C:\ibi\WebFOCUS53\ibi_html\javaassist\worp\js\util\worp_runtime.js.
Some code in function showMenu actually opens the window, I haven't figured out that part yet.
I hope this gets you a little closer to achieving what you require.
Good Night, and Good Luck.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 21, 2007, 12:29 AM
Francis Mariani
Function openLink calls function run_it, and it is this function that opens the new window.
At the top of file worp_runtime.js, variable runWindowParams is declared with a blank value. I modified that blank value to 'location=no,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no'.
For some reason I cannot understand (the JS is quite convoluted), the value of runWindowParams is blank when it is used in the window.open commands. So I just replaced the 'window features' part of the window.open: wherever there is a window.open, replace the third argument with 'location=no,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=no'.
For instance, where you see window.open(run_url, something, winParms); replace winParms with the above code. Where you see window.open(run_url, something, this.getRunWindowParams()); replace this.getRunWindowParams() with the above code.
BE CAREFUL! These functions are used to open all kinds of windows, you will have to find the window.open lines that deal with links in views. The one for a URL is in function openNewWindow.
Does it have to be so complicated?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 21, 2007, 09:17 AM
John Sajczuk
yes... it has to be this hard, otherwise, i would not have had the opportunity to find a knowledgable resource like you. I can't begin to tell you how thankful i am for your assistance.
if you are ever near Trenton, NJ let me know and maybe we can have lunch or something.
June 21, 2007, 09:21 AM
Dan Kenny
We struggle with the javascript quite a bit in our installation, especially in debugging browser behavior differences between IE and Firefox.
Resources that have been suggested by IBI tech support wizards for debugging javascript code are
I've used Firebug with Firefox. It is an incredible tool allowing breakpoints, step-through tracing, examining variables and properties, changing them on the fly, and handles JS, CSS, DOM, etc -- my personal favorite.
Be advised if you use Firefox to debug WF javascript, it won't help a lot for IE debugging, as the DOMs are different (got to love Microsoft's "independence" in using W3C standards), so the JS code has different code paths for IE.
But I agree, the code is complex and convoluted. Tracing down problems or trying to apply custom mods are always a challenge for us.
Regards,
-- Dan University of Nebraska at Omaha WF 7.1.6 Linux -- Test: WF 7.6.1 LinuxThis message has been edited. Last edited by: Dan Kenny,
June 21, 2007, 11:59 AM
John Sajczuk
this worked......
I believe making the changes in function openNewWindow(run_url)
was the one that made it work.
Again, my Thanks.
June 21, 2007, 03:19 PM
Francis Mariani
John, I'm glad it worked out! I learnt something too. I pormise to contact you if I'm ever in Trenton.
Cheers.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server