Focal Point
Concurrent Processing

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9541028331

January 07, 2005, 02:54 PM
Stan
Concurrent Processing
I have a WebFOCUS program which uses numerous fexes to build a report. Each fex is somewhat time consuming and I am wondering if there is a way to set it up where the numerous fexes would run concurrently rather than in order.

Thanks for any advice.
January 07, 2005, 03:04 PM
GCohen
If you have an HTML launch form, and this form
calls for the execution of the multiple Focexecs
when the SUBMIT button is clicked, or the form
autosubmits when it is called, then all of the focexecs are assigned to different WebFocus tasks and run in parallel.

The output could appear in different frames of the Form or whereever.
January 07, 2005, 03:27 PM
susannah
Gerry, whats the exact html syntax for multiple fexes from a single submit button and for specifiying different TARGETs for each one?
January 07, 2005, 04:49 PM
<WFUser>
Susannah,

You don't need multiple targets, just multiple forms in your html. Here is the JavaScript code to submit all of the forms but it gets a little more complicated if you need to pass the parameters from one form to the others. Your form tag then needs to run this JavaScript OnSubmit.

function suball()
{
document.form1.submit();
document.form2.submit();
document.form3.submit();
}
January 07, 2005, 10:57 PM
susannah
hmmm. this is very interesting.
so for ex, 2 forms. no submit button per se in each form. Each form could have a the same or separate targets.
just one submit button with javascript.
I wonder if i could have 2 forms, 2 fexes, same target. 1st fex clears the target frame, because it runs faster. the 2nd fex populates the target frame with its results.
What do you think, WFuser?
January 08, 2005, 01:32 AM
<WFUser>
Sure, why not?
January 11, 2005, 01:19 PM
Stan
Took me a day or so, but I got it to work..Thanks WFUser for the syntax.
January 11, 2005, 03:56 PM
j.gross
quote:
Originally posted by Stan:
[qb] I have a WebFOCUS program which uses numerous fexes to build a report. Each fex is somewhat time consuming and I am wondering if there is a way to set it up where the numerous fexes would run concurrently rather than in order.
[/qb]
How do the 'numerous fexes' contribute to the single 'report'? If their results are homogeneous (in the sense that they produce HOLD files with uniform MFDs) and the objective is to use TABLE to format a report against the combined data -- I've done that and can provide some details.