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.
Depends on where and when you try to run the code. If the html-code is within a fex you're running then you start the htm form with -HTMLFORM BEGIN and end it with -HTMLFORM END In between you can use DM commands and &variables.
If you're calling up the form from a browser, then you can't use DM commands or &vars because the webserver does not understand what they are.
And, if you running the htm file from within a fex, not embedded but as an external htm (called with -HTMLFORM filename) then you also cannot use DM commands, but you can use &variables, provided you code then as !IBI.AMP.something; or as !IBI.GLB.something; and also use the content of holdfiles with !IBI.FIL.filename; (note: the ! and the ; are mandatory).
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Yep, just ran an example of this, and for me it works fine. Exactly what is your code?
Below a simplified example of my code:
TABLE FILE CAR
print somefields
where some condition
ON TABLE HOLD FORMAT HTMTABLE
END
-RUN
-SET &LINS = &LINES;
-HTMLFORM BEGIN
<HTML>
<BODY>
!IBI.FILE.HOLD;
-IF &LINS EQ 8 THEN GOTO 8LINES;
There are &LINS lines in the report.
-GOTO ENDLINES
-8LINES
There are exactly 8 lines in your report.
-ENDLINES
</BODY>
</HTML>
-HTMLFORM END
And if the report contains exactly 8 lines I get the special line, if not I get the normal line displayed.
Hope this helps...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
agree w/ Gamp and PB, the use of dialog manager between HTMLFORM tags works like a charm and has since at least 4.3.1, which was around the time of noah's ark, as i recall
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003