Using WF 521 I have this urgent problem. Please help anyone.
I have a single line recordset being returned as a report.
I have to validate the account number so that if the value of Account number = 0 then goto a placeholder called -INVALIDACCOUNT, else continue with code.
This is what I have so far...
SET SQLENGINE=SQLMSS
ENGINE SQLMSS SET DEFAULT_CONNECTION DEFCONN
SQL EX myStoredProcedureName;
-IF ACCOUNT = 0 THEN GOTO INVALIDACCOUNT;
TABLE FILE SQLOUT
PRINT ACCOUNT
ON TABLE HOLD AS MYFILE
END
DEFINE FILE MYFILE
DUMMYFIELD/A1=' ';
END
TABLE FILE MYFILE
PRINT
DUMMYFIELD NOPRINT
-*DUMMYFIELD REQD BECAUSE GUI HAS A BUG WHERE THE REPORT IS LOST IF NO REPORT BODY IS ENTERED.
HEADING
"CUSTOMER DETAILS"
"<NAME "
"<ADD_1 "
"<ADD_2 "
"<ADD_3 "
"<ADD_4 "
"<POST_CODE "
ON TABLE SET ONLINE-FMT HTML
END
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>TIN BIN 40</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
<BODY>
<table>
<tr>
<td>
!IBI.FIL.MYFILE;
</td>
<td>
<form action=".../ibiweb.exe" method="GET" target="_parent">
<p align="center"><br>
<input type="hidden" name="IBIAPP_app" value="APPDIR">
<input type="hidden" name="IBIF_ex" value="FOCEXEC">
<input type="submit" id=RunReport value="Commit" name="B1">
</form>
<input type=button value="Back" onClick="history.go(-1)">
</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
</HTML>
-HTMLFORM END
-EXIT
-INVALIDACCOUNT
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>TIN BIN 40</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
<BODY>
<table>
<tr>
<td>
SORRY, THE ACCOUNT YOU HAVE SELECTED IS INVALID<BR>
PLEASE RETURN TO THE PREVIOUS SCREEN USING THE BACK BUTTON,<BR>
AND CHECK THE ACCOUNT NUMBER.<BR><BR>
ALTERNATIELY PLEASE CLICK THE MAIN REPORT BUTTON TO REFRESH THE SCREEN.</td>
<td>
<form action=".../ibiweb.exe" method="GET" target="_parent">
<p align="center"> <br>
<input type="hidden" name="IBIAPP_app" value="APPDIR">
<input type="hidden" name="IBIF_ex" value="FOCEXEC">
<input type="submit" id=RunReport value="Main Report" name="B1">
</form>
<input type=button value="Back" onClick="history.go(-1)">
</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
</HTML>
-HTMLFORM END
Cheers
Matthew
I have a single line recordset being returned as a report.
I have to validate the account number so that if the value of Account number = 0 then goto a placeholder called -INVALIDACCOUNT, else continue with code.
This is what I have so far...
SET SQLENGINE=SQLMSS
ENGINE SQLMSS SET DEFAULT_CONNECTION DEFCONN
SQL EX myStoredProcedureName;
-IF ACCOUNT = 0 THEN GOTO INVALIDACCOUNT;
TABLE FILE SQLOUT
PRINT ACCOUNT
ON TABLE HOLD AS MYFILE
END
DEFINE FILE MYFILE
DUMMYFIELD/A1=' ';
END
TABLE FILE MYFILE
DUMMYFIELD NOPRINT
-*DUMMYFIELD REQD BECAUSE GUI HAS A BUG WHERE THE REPORT IS LOST IF NO REPORT BODY IS ENTERED.
HEADING
"CUSTOMER DETAILS"
"<NAME "
"<ADD_1 "
"<ADD_2 "
"<ADD_3 "
"<ADD_4 "
"<POST_CODE "
ON TABLE SET ONLINE-FMT HTML
END
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>TIN BIN 40</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
<BODY>
<table>
<tr>
<td>
!IBI.FIL.MYFILE;
</td>
<td>
<form action=".../ibiweb.exe" method="GET" target="_parent">
<p align="center"><br>
<input type="hidden" name="IBIAPP_app" value="APPDIR">
<input type="hidden" name="IBIF_ex" value="FOCEXEC">
<input type="submit" id=RunReport value="Commit" name="B1">
</form>
<input type=button value="Back" onClick="history.go(-1)">
</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
</HTML>
-HTMLFORM END
-EXIT
-INVALIDACCOUNT
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>TIN BIN 40</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
<BODY>
<table>
<tr>
<td>
SORRY, THE ACCOUNT YOU HAVE SELECTED IS INVALID<BR>
PLEASE RETURN TO THE PREVIOUS SCREEN USING THE BACK BUTTON,<BR>
AND CHECK THE ACCOUNT NUMBER.<BR><BR>
ALTERNATIELY PLEASE CLICK THE MAIN REPORT BUTTON TO REFRESH THE SCREEN.</td>
<td>
<form action=".../ibiweb.exe" method="GET" target="_parent">
<p align="center"> <br>
<input type="hidden" name="IBIAPP_app" value="APPDIR">
<input type="hidden" name="IBIF_ex" value="FOCEXEC">
<input type="submit" id=RunReport value="Main Report" name="B1">
</form>
<input type=button value="Back" onClick="history.go(-1)">
</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
</HTML>
-HTMLFORM END
Cheers
Matthew