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.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
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