Focal Point
Submit More than One Report to WFServlet on One ASPX Page

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

February 06, 2008, 02:14 PM
Joe Giunta
Submit More than One Report to WFServlet on One ASPX Page
All,

I'm an extreme WebFocus newbie, and I am having some trouble running more than one WebFocus report from a single Aspx page.

Basically, I have a class that writes out a dynamic HTML form that looks like this:

<html><head>
<script type="text/javascript">
  function submitForm() {for (i=0; i<document.forms.length; i++) {document.forms[i].submit();} } 
</script>
</head>
<body onload="submitForm()">

<form name="FORM1" method="POST" action="http://XXX.X.X.XX/ibi_appsd/WFServlet" >
<input name="IBIF_ex" type="hidden" value="Report1.fex">
<input name="db" type="hidden" value="sample_">
</form>

<form name="FORM2" method="POST" action="http://XXX.X.X.XX/ibi_appsd/WFServlet" >
<input name="IBIF_ex" type="hidden" value="Report2.fex">
<input name="db" type="hidden" value="sample_">
</form>

</body></html>


When the form loads, it submits to the WFSerlet.
This will work on some machines, but on others Report2 will process while Report1 will not. Does anyone have any ideas?

Thanks,
-- Joe --
February 06, 2008, 02:28 PM
jodye
Hi

Maybe stick target="_blank" in there.



That way each one will open in a new window. Probably the second one is simply replacing the first one.

Jodye


WF 8.0.0.5M
February 06, 2008, 03:29 PM
Joe Giunta
Thanks a lot!!!! Winky

That did it....sort of. For the process I am working on, while the CSR is working the account and wants to generate a bill, I need a couple of specific documents. What is happening on most of my user's PC's is that they will click a "Bill" button on the main account's page. That will cause javascript to pop open a new window. This window's job is to create the dynamic HTML to submit any reports that are needed for the bill (max of 2). On most of the PC's this new page submits both report requests and displays the last one, which is fine.

What is happening with the target="_blank", is the new window opens, creates it's dynamic HMTL and then opens two more windows, so I have three in total, plus the original aspx page that is the account's main page.


Maybe if I add target="_self" to one form and target="_blank" to the other that would work? I'll test it out, thanks for your help!!