Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HTML Form Custom Message
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] HTML Form Custom Message
 Login/Join
 
Platinum Member
posted
Everyone,

I've run into a minor snag. I've been using a custom HTML Form to provide some custom messages in certain situations. The messages don't always work in 8.2.04. I suspect it has something to do with my SET commands.

Here's my code:

-IF &RECORDS GT 0 GOTO NEXT;
-HTMLFORM BEGIN
<p style="color: #000000; font-size:18px; font-family: Calibri;">

		<br>The selected combination is not valid.
</p>

-HTMLFORM END
-#NEXT  


Here is a list of my SET commands, too.
SET EMGSRV=OFF
SET MESSAGE = OFF
SET ERROROUT = OFF
SET WARNING = OFF
SET TRMOUT = OFF
SET MSG = OFF
SET ASNAMES = OFF
SET HOLDATTR = OFF
SET EMPTYREPORT = OFF  


Below I have provided a reference to a post I had on this similar subject.
 [CLOSED] HTML FORM CUSTOMIZATION OF ERROR MESSAGES 


Right now, I get the standard No Ouptut Returned.

I'm probably overlooking something simple, but I'd appreciate any advice. Thank you.

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


WebFocus 8.2.04
WebFocus 8.2.04

 
Posts: 182 | Registered: September 18, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
You don't show a target for your GOTO NEXT. However, there is a -#NEXTtarget. The -HTMLFORM by itself runs fine...
-IF &RECORDS GT 0 GOTO NEXT;
-HTMLFORM BEGIN
<p style="color: #000000; font-size:18px; font-family: Calibri;">

		<br>The selected combination is not valid.
</p>

-HTMLFORM END
-#NEXT
 
Posts: 3112 | Location: Tennessee, Nashville area | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Thank you for the reply.

I think I am missing something in the translation.

If I understand what you are saying, I need something for the -#NEXT target.

This error message is at the end of my report, and if the report generates no records, I want the HTML form to run in its place.

If the report generates any records, it should run appropriately.

Right now, sometimes, I get the standard no output error. Other times I get my HTML FORM below my report headings without a report, and still in other instances, I get the HTFML form text by itself.

I know I am missing something.

Usually, when using Dialog Manager, you have GOTO FORM.

Then, -FORM

THEN LBL_END

Does HTMLFORM work the same way?


WebFocus 8.2.04
WebFocus 8.2.04

 
Posts: 182 | Registered: September 18, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
What Doug is saying is that you have a reference to NEXT but this label does not exist.
The only existing label is : #NEXT
They must match

-IF &RECORDS GT 0 GOTO NEXT;
-HTMLFORM BEGIN
<p style="color: #000000; font-size:18px; font-family: Calibri;">

		
The selected combination is not valid.
</p>
-#NEXT


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
 
Posts: 2357 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Thank you, MartinyY, for that clarification.

The code is code I found on the forum exactly and have been using since 2015. It has worked as it is all these years.

I have discovered the issue with the HTML form. It has to do with our master files of data behind the scenes.

Thank you everyone.


WebFocus 8.2.04
WebFocus 8.2.04

 
Posts: 182 | Registered: September 18, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HTML Form Custom Message

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.