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     dash in HTMLFORM interpreted incorrectly

Read-Only Read-Only Topic
Go
Search
Notify
Tools
dash in HTMLFORM interpreted incorrectly
 Login/Join
 
Platinum Member
posted
We have a lot of our FOCUS documentation stored as web pages. And we have examples in the documentation that may have lines like -RUN in them.

In an effort to convert these pages to WebFocus, we have just created a simple .fex that wraps the existing page in -HTMLFORM BEGIN and -HTMLFORM END.

However, when running the fex, the page stops at the -RUN statement.

Other than hand-editing these pages with the html-safe version of a dash, is there some WebFOCUS setting that can be used to not have a dash be interpreted?

Thanks. Suzy

P.S. Ending html comment lines like --> on a line by itself mess things up, too.
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
Virtuoso
posted Hide Post
1. "-->" in column 1, or " -->" in 2, will inescapably be treated as a Dialog Manager directive, which will stop the music. (If you really must have --> at start of a line in the View Source, stuff it into an &variable and place a reference there.)

2. What purpose are the -RUN's intended to serve? Why not just rip them out?

If need be, rearrange the pieces to complete all non-dialog-manager Focus command processing first, and place all -HTMLFORM sections at the end, interspersed as need be by DM flow-control statements.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
<Pietro De Santis>
posted
Interestingly, according to the manual, "All lines that are not Dialogue Manager commands are assumed to be HTML".

Suzy, I think what's happening is that when WebFOCUS encounters a -RUN, it executes the WebFOCUS code before it, even though you've added a -HTMLFORM and HTML comments.

----------------------------------------

You can include HTML commands in a procedure by embedding those commands in a
procedure.
Note: The -RUN command cannot be included in the lines between the -HTMLFORM BEGIN
and -HTMLFORM END commands.
Syntax: How to Embed HTML Commands in a WebFOCUS Procedure
-HTMLFORM BEGIN
.
.
.
-HTMLFORM END
where:
-HTMLFORM BEGIN
Indicates the beginning of HTML commands.
-HTMLFORM END
Indicates the end of HTML commands.
Note: All lines that are not Dialogue Manager commands are assumed to be HTML.
 
Report This Post
Platinum Member
posted Hide Post
Thanks to you both. We knew what was happening, just didn't want it to be so, and hoped that we had overlooked some setting.

The original idea was to not need to do any hand-editing of these files, but still adhere to the WebFOCUS mantra that the FEX is REX.

The routine that converts these files from html to fex can do them all in a couple of minutes.

Our original html is valid, just not within the constraints of WebFOCUS.

Thanks. Suzy
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
<Pietro De Santis>
posted
I don't know if this will help, but if you rename your documentation fexes to html files, and then -HTMLFORM them into a fex, the FOCUS code will not execute.

htmlform1.fex

-HTMLFORM htmlf1[/code]htmlf1.htm

THIS IS SOME DOCUMENTATION
-RUN
TABLE FILE CAR
PRINT *
END
-RUN
THIS IS SOME MORE DOCUMENTATION[/code]

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Expert
posted Hide Post
that's sooo clever!
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
We are going to incorporate a test into our conversion routine that replaces a the first dash it encounters with the html special entity 'amper ndash;' and see what happens. For our situation--converting valid, working html to WebFOCUS--this will probably solve the problem

IBI should really do 2 passes on code within the HTMLFORM BEGIN and END tags. They know which commands are valid DM commands and can leave them alone. The other lines that have a leading dash can be converted to the html special entity. Then, when the code is actually run, there would be no ambiguity.
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
<Pietro De Santis>
posted
Suzy,

If you convert the - in -RUN to a ndash, won't the FOCUS code run anyway, just at the end of the -HTMLFORM END?

If you do a View Source, you most likely will see that the code is run.

Just a thought.
 
Report 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     dash in HTMLFORM interpreted incorrectly

Copyright © 1996-2020 Information Builders