Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]Error Message window

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]Error Message window
 Login/Join
 
Platinum Member
posted
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
 
Posts: 117 | Registered: May 28, 2015Report This Post
Master
posted Hide Post
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:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Platinum Member
posted Hide Post
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

 
 
Posts: 109 | Registered: February 02, 2016Report This Post
Platinum Member
posted Hide Post
Both methods worked, thanks!


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]Error Message window

Copyright © 1996-2020 Information Builders