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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
HTML in Heading ?
 Login/Join
 
Member
posted
I would like to add some html code in the heading of a report. I thought I might be able to just create an amper variable and assign the HTML code to it. Then use the amper variable in one of the heading lines. Like the following:

-SET &RADIO ='INPUT TYPE=RADIO...'

(I left the < out in the message as the BB thinks I really want too show the tag.)

The problem is that WebFocus thinks the "<" symbol means I want to pipe the contents of a variable instead. So it's looking for a variable named INPUT.

I didn't want to use a template if I didn't really need to. Any ideas?

This message has been edited. Last edited by: MTracker,
 
Posts: 21 | Registered: November 15, 2004Report This Post
Master
posted Hide Post
Yes, you can do that

-SET &RADIO1='INPUT TYPE=Radio value="xX">';
-SET &RADIO2='<' | '&RADIO1' ;
you can do this way or you can use DEFINE
-SET &RADIO1='INPUT TYPE=Radio value="xX">';
DEFINE FILE TEST
RADIO/A100v='<' | '&RADIO1' ;
END


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
Yes, I know that I could use a define to create a field on each row. The problem with that is that the types of reports I want to use this on have a large number of rows. So if the field that contains the radio button code is say 100 characters you'd be adding that to every row.

I was hoping not to add a lot of overhead to the report. Or maybe I'm not quite following your idea?
 
Posts: 21 | Registered: November 15, 2004Report This Post
Master
posted Hide Post
You are going to use that DEFINE Field only in your Heading.

HEADING
" <RADIO "


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
If you do not have too many output rows then you could use a COMPUTE instead of the DEFINE which is only computed on each output row instead of each input row.

Failing that you could just COMPUTE a single field (say ht/A1) and equate it to the left carat with the NOPRINT option. Then you can just replace the opening tag with that field something like -
TABLE FILE CAR
SUM RCOST
    DCOST
    COMPUTE ht/A1 = '<'; NOPRINT
BY COUNTRY
BY CAR
BY MODEL
WHERE COUNTRY EQ '&Country'
HEADING
"<ht|form name=form method=get action=/cgi-bin/ibi_cgi/ibiweb.exe>
-* The following code should all be on one line!
<ht|table><ht|tr><ht|td width=10%>
England
<ht|/td><ht|td><ht|input name=Country type=radio value=ENGLAND checked=1><ht|/td>
<ht|td width=80% rowspan=2><ht|input type=submit><ht|/td><ht|/tr>
<ht|tr><ht|td width=10%>
Italy
<ht|/td><ht|td><ht|input name=Country type=radio value=ITALY><ht|/td><ht|/tr>
<ht|/table><ht|/form>"


Any help?

T

p.s. apologies that the line is soooooo wide, but you have to be careful with breaking up of the heading tags that WF generates! Frowner

This message has been edited. Last edited by: Kerry,



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
This works:

-SET &RADIO1 = 'Radio 1<INPUT TYPE=RADIO VALUE="RED">';

TABLE FILE CAR
PRINT MODEL
BY COUNTRY
HEADING
"THIS IS THE HEADING"
"!IBI.AMP.RADIO1;"
" "
ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
!IBI.FIL.H001;
-HTMLFORM END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Yes, that does work very nicely. Thanks.
 
Posts: 21 | Registered: November 15, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders