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
"This is my country: <COUNTRY"
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. "_self" will reuse the same window. Also, if you opened the window with a name "myfex" and you set the target to be "myfex", 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 "_self" 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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.