Focal Point
need code to run in defer mode

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

January 17, 2013, 10:48 AM
a03654
need code to run in defer mode
Hi,
one of my webfocus report is gettig timedout as there is a large data. i want to run it defer mode. i believe below is the problematic codein my my UI fex file, can someonce tell me how to modify so it runs in defered mode.



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


WebFOCUS 7.1
Unix; Excel
January 17, 2013, 10:57 AM
Prarie
Is it in MRE? Then right click and choose Run Deferred. If it is not in MRE, you can schedule it in ReportCaster if you have a Lisense
January 17, 2013, 03:42 PM
John_Edwards
You can build a "Run in Deferred Mode" with a button like this --

 <input type='submit' NAME='IBIMR_defer' VALUE='Defer'> 


If you're in MR that's your ticket. Remove the Run button and replace it with the button above.

J.



January 18, 2013, 08:48 AM
a03654
Hi All, thanks for your comments. My report is an online report. whenever we give the dates and click on generate report option in the page, it invokes below UI fex file.

as there is a huge data, it is showing timeout error on the page. so i have to make it run in deferred mode.
Cna someone please tell me in which places of my below code i need to modify/add so it run in dererred mode.

This message has been edited. Last edited by: a03654,
January 25, 2013, 11:32 AM
Prarie
Did you do what Johrn Edwards suggested?
January 26, 2013, 09:00 AM
a03654
Hi All,

I have replaced the 'Generate report' button (code below) In my UI fex provided above

  <INPUT language=java_script id=button1 style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; Z-INDEX: 39; LEFT: 20px; WIDTH: 120px; COLOR: white; FONT-FAMILY: Arial; POSITION: absolute; TOP: 258px; HEIGHT: 24px; BACKGROUND-COLOR: dimgray" onclick=button1_OnClick[this) tabIndex=6 type=button size=38 value="generate report" name=button1 persistentuniqueid="compUid_458" requests_list="0">

Replaced with
  <input type='submit' NAME='IBIMR_defer' VALUE='Defer'> 


after changes, there is a Defer button appeared on the screen, when i give all the required fields and click on Defer button, the page is not pulling data , it stays on same page. please suggest what went wrong

This message has been edited. Last edited by: a03654,
January 28, 2013, 10:36 AM
Francis Mariani
If you built this using the HTML Composer GUI and if the report is a Managed Reporting (MRE) report, you can use the GUI to add a Deferred button:

Add a button.
Richt-click on the button;
Select Create Hyperlink...;
Add an Action by clicking on the New Action button;
Select External procedure (or Embedded procedure);
Click on Source procedure ... and select the procedure;
Select Target Type Deferred.




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
January 30, 2013, 01:29 AM
a03654
Hi Francis, thanks for the reply.
im not good in webfocus, im just a learner Frowner so i couldnt understand what you mentioned above. is there any document available which shows steps with screen shots for the above procedure
January 30, 2013, 02:01 AM
a03654
Later today i implemented the code changes provided by Francis and now im getting below errors

Reporting server exceeeded connection limit. Please investigate reporting server log

Do i need to modify something ??

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