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.
Hi, I have a variable in report heading and that variable contains HTML tags (like
<HTML><B>
)in it. Its currently erroring out becoz of the '<' sign. is there any way to somehow mask the '<' sign and still retain the HTML tags. I already tried doing a computed field for the "," sign but it adds a space after the sign and becoz of that the tag is not valid anymore. and also i cannot create a computed field with that variable and use the field in the heading as my result set has more than million records. Here is the Sample code.
-SET &HEAD = '<html><body><div> This is test sample </div>
need to retain the html tags </p> </body> </html>';
-SET &HEAD1 = '<LT|html><LT|body><LT|div> This is test sample <LT|/div> <LT|p> need to retain the html tags <LT|/p> <LT|/body> <LT|/html>';
TABLE FILE CAR
PRINT
CAR
COMPUTE LT/A1='<';
HEADING
-*"&HEAD.EVAL"
-*"&HEAD1.EVAL"
" "
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=IN,
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL, $
TYPE=HEADING,ITEM=1,SIZE=10,STYLE=BOLD,COLSPAN =3,$
ENDSTYLE
END
This message has been edited. Last edited by: Kerry,
Originally posted by wf_devloper: Hi, I have a variable in report heading and that variable contains HTML tags (like <|HTML>,<|div> adding '|' to retain the tag in this document)in it. Its currently erroring out becoz of the '<' sign. is there any way to somehow mask the '<' sign and still retain the HTML tags. I already tried doing a computed field for the "," sign but it adds a space after the sign and becoz of that the tag is not valid anymore. and also i cannot create a computed field with that variable and use the field in the heading as my result set has more than million records. Here is the Sample code.
-SET &HEAD = '<|html><|body><|div> This is test sample <|/div> need to retain the html tags <|/p> <|/body> <|/html>'; -SET &HEAD1 = ' This is test sample need to retain the html tags ';
TABLE FILE CAR PRINT CAR COMPUTE LT/A1='<'; HEADING -*"&HEAD.EVAL" -*"&HEAD1.EVAL" " " ON TABLE SET HTMLCSS ON ON TABLE SET PAGE-NUM OFF ON TABLE SET PAGE NOLEAD ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET STYLE * UNITS=IN, TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL, $ TYPE=HEADING,ITEM=1,SIZE=10,STYLE=BOLD,COLSPAN =3,$ ENDSTYLE END
I tried storing &HEAD into a define and then used the define field in the header and it shows the text.
-SET &HEAD = '<|html><|body><|div> This is test sample <|/div> need to retain the html tags <|/p> <|/body> <|/html>';
-SET &HEAD1 = ' This is test sample need to retain the html tags ';
DEFINE FILE CAR
HEAD_DESC/A&HEAD.LENGTH='&HEAD.EVAL';
END
TABLE FILE CAR
PRINT
CAR
COMPUTE LT/A1='<';
HEADING
"<HEAD_DESC"
"&HEAD1.EVAL"
" "
ON TABLE SET HTMLCSS OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=IN,
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL, $
TYPE=HEADING,ITEM=1,SIZE=10,STYLE=BOLD,COLSPAN =3,$
ENDSTYLE
END
-SET &LETH = '<';
-SET &LESS = '!IBI.AMP.LETH;';
-SET &HEAD = &LESS |'html>' | &LESS | 'body>' | &LESS | 'div> This is test sample' |
- &LESS | '/div> need to retain the html tags ' |
- &LESS | '/p> ' | &LESS | '/body>' | &LESS | '/html>';
-SET &HEAD1 = ' This is test sample need to retain the html tags ';
TABLE FILE CAR
PRINT
CAR
COMPUTE LT/A1='<';
HEADING
"&HEAD"
"&HEAD1"
" "
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE HOLD AS H1 FORMAT HTML
ON TABLE SET STYLE *
UNITS=IN,
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL, $
TYPE=HEADING,ITEM=1,SIZE=10,STYLE=BOLD,COLSPAN =3,$
ENDSTYLE
END
-RUN
SET HTMLFORMTYPE = XLS
-HTMLFORM H1