Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WEBFOCUS

Status
Not open for further replies.

breyt

IS-IT--Management
Dec 9, 2002
66
FR
HI
HOW I CAN PREVENT WEBFOCUS TO OPEN NEW WINDOW WHEN A CHANGE OF PROGRAM
BREYT
 
HI
I am in webfocus and i run a report. In the heading I have a buton to call an another program. And when I execeute this new program the result is an a new window instead of the same main Window
Breyt
 
Let me get this straight - you run a report and there is a button or link in the heading (not the body) of the report that will run another report.

A couple of possibilities come to mind
1. The button/link is associated with javascript to open a new window and run a report in which case you need to change the target to "_self"
2. The button/link is an href to another report and the target needs to be set to "_self"
3. The stylesheet for the report that you ran has FOCEXEC=something and TARGET='_self' needs to be added to the same item.

for example, the following will always open a new window for the drill down.

TABLE FILE CAR
&quot;This is my country: <COUNTRY&quot;
SUM SALES
BY COUNTRY
ON TABLE SET STYLE *
TYPE=HEADING, OBJECT=FIELD, ITEM=1, FOCEXEC=MYFEX, TARGET='_blank',$
END

Changing TARGET='_blank' to 'myfex' will open a new window called 'myfex' and will be reusable and changing it to '_self' will reuse the same window that the report was origionaly in.
 
Hi
Thanks for the information,However the problem is when I call a focexec from a javascript function and in the target I have specify the name of the target (initialise in the program by self.name=myfex).
I submit the fex by : document.f1.submit();
thanks for your help
breyt
 
Specifying a target name will cause the browser to first check if a window with that name already exists, if not, it will open a new window. &quot;_self&quot; will reuse the same window. Also, if you opened the window with a name &quot;myfex&quot; and you set the target to be &quot;myfex&quot;, this will also reuse the same window.
 
Hi
It seem that the problem is AN IE problem.I have done exactly like you say and sometime it works(do not open a new window) and sometime not(open a new window)
I don't know what to do
Breyt
 
If your using &quot;_self&quot; to use the same window, I really don't know what else to tell you. I've been doing this quite a bit in IE 5.5 without ever having a problem.

What version of IE are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top