Focal Point
[CLOSED] How to stop run Deferred option from Javascript?

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

November 12, 2019, 09:03 AM
Yashwanth
[CLOSED] How to stop run Deferred option from Javascript?
HTML has dates and Run Deferred option. I need to give an alert if its more than 12 months and defer should not run. How to do stop the same?

Return false; in Javascript didnt work!

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.7.3
Windows, All Outputs
November 12, 2019, 10:09 AM
BabakNYC
Are you actually running WebFOCUS 7.7? I'm not sure if I understand the question.


WebFOCUS 8206, Unix, Windows
November 12, 2019, 03:17 PM
MartinY
As far as I understand your question the answer is that you need to validate the selected period not to be more than 12 months, send an error to the user and stop the propagation

As for javascript, it all depend how it is coded (and in which function)


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 13, 2019, 02:45 AM
Yashwanth
below html code to run Deferred mode. Its calling Run deferred mode internally and i am unable to control it from JavaScript.

input type='hidden' name='IBFS_random' id='IBFS_random' value=''
input type="hidden" name="IBFS1_action" id="IBFS1_action" value="runItemDeferred"
input type="hidden" name="IBFS__methodName" id="IBFS__methodName" value="runItemDeferred"
input type="hidden" name="IBFS_path" value="Path/file.fex"

how to run file in deferred from JavaScript code instead of HTML code??

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


WebFOCUS 7.7.3
Windows, All Outputs
November 13, 2019, 08:03 AM
BabakNYC
What version of WebFOCUS are you running?


WebFOCUS 8206, Unix, Windows
November 13, 2019, 10:50 AM
Doug
How about using the builtin Calendar Control with a limit of 12 months instead of JavaScript? That would prevent the possibility of the users entering any date beyond 12 months.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206