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.
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,
-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, 2005
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?
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! 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, 2004