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
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