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.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 191 | Registered: September 18, 2015Report 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: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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: 191 | Registered: September 18, 2015Report 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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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: 191 | Registered: September 18, 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] HTML Form Custom Message

Copyright © 1996-2020 Information Builders