Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Customizing the Deferred submission Confirmation Page?
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Customizing the Deferred submission Confirmation Page?
 Login/Join
 
Gold member
posted
Hi Everyone,

Does anyone know if there is a way to customize the deferred confirmation page? Every time when the deferred report is submitted, the system will redirect to the confirmation page where it tells the time that was submitted and the report that has been submitted successfully, shown below.

Wednesday, January 28, 2009 3:11:39 PM

power102
has been successfully submitted for deferred execution.



Is there a way to customize the page as well as the wording?

Thanks in advance for your input.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.1.6 on Win 2K/IIS 6/ISAPI HTML
 
Posts: 77 | Location: San Ramon, CA | Registered: May 17, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
I have one application that submits the deferred report and retrieves the result via XML.

As long as you use the parameter IBIMR_returntype and set it to xml, you can capture the result and then show a custom page that looks nice. Big Grin


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6281 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi Waz, thank you for the suggestion. Could you show me where/how to set it?


WebFOCUS 7.1.6 on Win 2K/IIS 6/ISAPI HTML
 
Posts: 77 | Location: San Ramon, CA | Registered: May 17, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
The code below submits and captures the return code of the submission.

You will have to add js to show a submited or failed submit page.

You will also nees to populate the MRE info in the form.

<HTML>
<HEAD><CENTER><FONT SIZE=+2></FONT>
<TITLE>Deferred XML Return</TITLE>
<script src="/ibi_html/javaassist/cgipath.js"></script>
<script language="javascript">
var ibiOptions = new Array("ibihttpxml") ;
function init()
{
  //updated for Release 5
  document.form.action = getWFScriptName();
  if ((document.form.IBIMR_defer != null) &&
      (document.form.IBIMR_threebuttons != null))
     document.form.IBIMR_defer.value="";
}
function funSubForm() {

	var ibihttp = new ibihttpxml(ibigblgetCgiPath(),null);
	var leftHtml = null;
	ibihttp.openFromForm(document.forms[0]);
	var selctNode = ibihttp.selectSingleNode("//ibwfrpc/RETURNCODE");
	var rcCode = ibihttp.getNodeText(selctNode) ;
	if (rcCode=='1000') {
		alert('Return = ' + rcCode + ', Submit OK, Show the nice submited form.') ;
	}
	else {
		alert('Return = ' + rcCode + ', Submit Bad, Show the nice submit failed form.') ;
	}
}
</script>
<script type="text/javascript" language="Javascript" src="/ibi_html/javaassist/ibi/html/js/ibigbl.js"></SCRIPT>
</HEAD>
<BODY BACKGROUND='/ibi_html/template/none_bkg.gif' onLoad="javascript:init();">
<H2>Deferred XML Return</H2>
<CENTER><P><FONT SIZE=+1></FONT></CENTER>
<FORM name='form' action='/ibi_apps/WFServlet' method='post'>
<TABLE>
<input type='hidden' name='IBIMR_domain' value="{mre domain name}/{mre domain name}.htm">
<input type='hidden' name='IBIMR_action' value="MR_RUN_FEX">
<input type='hidden' name='IBIMR_sub_action' value="MR_STD_REPORT">
<input type='hidden' name='IBIMR_fex' value="app/{focexec name}.fex">
<input type='hidden' name='IBIF_ex' value="app/{focexec name}.fex">
<input type='hidden' name='IBIMR_flags' value="">
<input type='hidden' name='IBIMR_folder' value="#{Folder Name}">
<input type='hidden' name='IBIMR_returntype' value='xml'>
<input type='hidden' name='IBIMR_random' value=''>
<script>
document.form.IBIMR_random.value = Math.random();
</script>

<tr><td>
<INPUT TYPE='button' NAME='Submit' VALUE='Defer' onclick="funSubForm()">
<input type='hidden' name='IBIMR_defer' value='defer'>
</td></tr>
<tr><td><INPUT TYPE='RESET' NAME='reset' VALUE='Reset'></td></tr>
</TABLE>
</FORM>

</BODY>
</HTML>


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6281 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi Waz, thanks for spending the time to post the code for me. I will try and test it and will let you know if i have questions.


WebFOCUS 7.1.6 on Win 2K/IIS 6/ISAPI HTML
 
Posts: 77 | Location: San Ramon, CA | Registered: May 17, 2007Reply With QuoteReport This Post
Member
posted Hide Post
Hi Waz, I have the same problem,
could you prevent from turning out the page?
from your code, it will be turned out a page and alert, but i do not need the page.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 4 | Registered: December 16, 2011Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Customizing the Deferred submission Confirmation Page?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.