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 javascript functions while processing a procedure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
execute javascript functions while processing a procedure
 Login/Join
 
Member
posted
Hi,

I would like to know if it is possible to execute js functions while i'm processing a large procedure.

I've a frameset where in the top frame appears a loading message, and in the main frame I process my focexec, when it is finished it changes the body size of the top frame and make it disappear, but I would like to send messages to the top frame like: 'First part of your request is processed (Include 1)', 'Second part processed', etc.

Is there any way to do what i want??

Thanks!!!
 
Posts: 2 | Registered: February 08, 2006Report This Post
<JG>
posted
NO.

WebFocus does not return anything to the browser until the request is finished.

Because it is a non persistent connection you cannot return an interim status.
Trying to do so means’ everything you have done so far is lost.
 
Report This Post
Member
posted Hide Post
Thanks you JG.
As you say, I can't do what I want but not all my work is lot! I don't wanna be so apocalytic!
Eeker

Wink Raimon Martin
 
Posts: 2 | Registered: February 08, 2006Report This Post
Expert
posted Hide Post
I've never done this, but here is an idea:

Allocate a text file.

After each
...
END
-RUN

add a -WRITE into a file.

If JavaScript can read the text file, display the contents of the text file in the frame.

Don't know if this will work...


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
Here is an idea. Only an Idea. you could break up your procedure into seperate steps (where you want to show a message), at the end of each step be an -HTMLFORM statement with a message to display back to the user and some javascript code the execute the next step. Be sure you create unique files for each step for each user and use them in the next step. This may be a lot of work but may give you what you want. If it were me, I would just try to display a page that says processing your request, and maybe put an animated gif on that page. Using the first technique does have it benefits if the request is a long processing request because after each step is completed the browser fires off the next request which will help prevent browser time outs. If you do get the first suggestion working please post the code here for other users. Hope this idea helps.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
<JG>
posted
Having said NO the responses have given me a nudge.

When you call your focexec pass a unique identifier for use as a file name.

In this file which is an html page to be displayed in the top frame, you write the status at each process step.

The top frame has a time based auto refresh reloading the html file and so your status is updated.

The file obviously must be written to a directory visable to the browser and will need deleting to prevent
a build up of rubbish.

The easiest way to do this would be to have an action in the top frame that ran a focexec that issued a !del file or !rm file dependant on the OS.
 
Report This Post
Expert
posted Hide Post
Sounds good!


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
  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 javascript functions while processing a procedure

Copyright © 1996-2020 Information Builders