Focal Point
[SOLVED] Report with HTML Tags in Field

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1187049786

October 06, 2017, 02:33 PM
Aswin Ravikumar
[SOLVED] Report with HTML Tags in Field
Hi,
I have a master file which contains html tags in one of its field. When i run the sample data i am able to see the field with tags as text but when i do a print * , empty dropdowns and buttons are created on top the report. Even htmlcss off did not affect the output

Code

TABLE FILE BASICSEARCH
PRINT *
ON TABLE SET HTMLCSS OFF
END

Master file

FILENAME=basicsearch, SUFFIX=DFIX    ,
DATASET=mreadmin/basicsearch, $
 SEGMENT=BASICSEARCH, SEGTYPE=S0, $
   FIELDNAME=PATTERN, ALIAS=PATTERN, USAGE=A40, ACTUAL=A100,
     TITLE='Pattern', $
   FIELDNAME=FILENAME, ALIAS=FILENAME, USAGE=A100V, ACTUAL=A100,
     TITLE='Filename', $
   FIELDNAME=PATH, ALIAS=PATH, USAGE=A300V, ACTUAL=A300,
     TITLE='Path', $
   FIELDNAME=LINENUMBER, ALIAS=LINENUMBER, USAGE=I5, ACTUAL=A5,
     TITLE='LineNumber', $
   FIELDNAME=LINE, ALIAS=LINE, USAGE=A1000V, ACTUAL=A1000V,
     TITLE='Line', $
 


I want them to be considered as text inside of html tags

This message has been edited. Last edited by: Aswin Ravikumar,


Webfocus 8.1
Windows x64
Excel
October 06, 2017, 03:14 PM
David Briars
Have you tried turning HTML encoding ON?
SET HTMLENCODE = ON
DEFINE FILE CAR
 HTML/A50 = '<BR><BR><BR><BR><BR><BR>';
END
TABLE FILE CAR
PRINT COUNTRY
      HTML
      CAR
END  

October 06, 2017, 03:16 PM
Aswin Ravikumar
Thanks David ! It worked


Webfocus 8.1
Windows x64
Excel