Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Execute procudure without window?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Execute procudure without window?
 Login/Join
 
Platinum Member
posted
Is there a way to execute a procedure without having a window opening? The reason I ask is becuase I created a fex with the sole purpose to append to a focus file and I don't need the HTML window saying that it executed.

I know I can write some JSP in the fex that is generated to close the window but was wondering if there was something easier?

Eric


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat
 
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006Report This Post
<Tim Howard_ABCBS>
posted
You can always use javascript and a AJAX framework to execute a procedure without opening a new window. I've got a js library and an example if you want to see how I'm doing it, just let me know.

You can also set the procedure to return in an iframe within the current html and locate the iframe off of the screen (ie give it negative z-index). This will only work if you are using iframes which is how version 7+ does it in the html editor.

Otherwise, I'd have to see an example of the code you are using to help.

Tim H.
 
Report This Post
Virtuoso
posted Hide Post
Schedule the request with ReportCaster


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Platinum Member
posted Hide Post
Nevermind, I just added this at the end of the fex:

-HTMLFORM BEGIN
[HTML]
[body onLoad="java_script:window.close[);" ]
[/BODY]
[/HTML]
-HTMLFORM END

I can't use report caster because this is being used to save parameters on a launch page.


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat
 
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006Report This Post
Master
posted Hide Post
eric. an easy way is to just set the target to a hidden iframe using a DIV tag and visibility hidden, this way the user will not see it. I use this a lot for an web based IDE I have created to execute some focus code and get the results back. I do however display an animated gif so the use know it is doing something then when I get the response back I hide the gif.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
The problem with hiding the iFrame is that if there's something wrong with the WebFOCUS request, you won't see the error messages.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Francis. is right about that I in my focexec if there is an error message I have javascript that get set if there is an error and display and alert to the user.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Member
posted Hide Post
care to share a sample of the code?
 
Posts: 18 | Location: Trenton, New Jersey | Registered: November 24, 2003Report This Post
Virtuoso
posted Hide Post
John

If you have also ETL installed you can schedule the process there, you won't get an html screen and I suppose that if you have to add to a focus file this must be done more than once.
ETL helps you doing that job unattended.




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

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
No ETL used in this case... I have a security process that gets executed in MRE as a profile and only want "if they fail security" for a window to be seen.

Thanks for responding.
 
Posts: 18 | Location: Trenton, New Jersey | Registered: November 24, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Execute procudure without window?

Copyright © 1996-2020 Information Builders