Focal Point
[Solved]Error Message window

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

October 25, 2018, 01:18 PM
Trudy
[Solved]Error Message window
I would like to have an error message window with specific text in it to open up to the user after a .fex is run from an html page. The .fex checks for certain criteria. This part runs fine but I don't know how to open a window and display the message after checking the criteria. I tried creating an HTML page and calling that with an include statement but I got an Internal exception processing IBFSService.runItem message. Even though the .htm file runs fine. See the code below for what I use to call the .htm

-IF &ID1 EQ '0' AND  &ID2 EQ '0' GOTO ENDERR;

-ENDERR
-INCLUDE IBFS:/WFC/Repository/Registrar/GradAudError.htm
-GOTO ENDREP


  

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


WF8
Windows
October 25, 2018, 01:23 PM
Hallway
Try changing the -INCLUDE to -HTMLFORM
  
-IF &ID1 EQ '0' AND  &ID2 EQ '0' GOTO ENDERR;

-ENDERR
-HTMLFORM IBFS:/WFC/Repository/Registrar/GradAudError.htm
-GOTO ENDREP



Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
October 25, 2018, 01:31 PM
pav
something like this ?

 TABLE FILE CAR
PRINT
CAR
ON TABLE HOLD AS RECORDCOUNT FORMAT ALPHA
END
-RUN

-SET &LINES=1;

-*-*-*-*Try change the above value to see the two labels.
-*-*shows alert when there is no data and show output when you have data



-SET &ERROR = &LINES;


-IF &ERROR EQ 0 GOTO ERROR_SCRIPT;

-IF &ERROR NE 0 GOTO CONT;

-ERROR_SCRIPT
TABLE FILE CAR
PRINT
CAR NOPRINT
ON TABLE HOLD AS RESULT_X FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<html>
<body>
<h>This is test</h>

<script>

alert("NO DATA FOUND");

</script>



</BODY>
<HTML>

-HTMLFORM END
-EXIT


-CONT
TABLE FILE CAR
PRINT
CAR
COUNTRY
END
-EXIT

 

October 25, 2018, 04:08 PM
Trudy
Both methods worked, thanks!


WF8
Windows