Page 1 of 1

HTML variable in universal display file

Posted: Fri Nov 13, 2015 6:41 pm
by rict
I am trying to write the contents of a bound variable which contains HTML code to a universal display file. The variable contains data such as
<b>this is BOLD</b>

However, when the universal display file is presented to my window I see the value of the variable as:
<b>this is BOLD</b>

Is there a way to send the html code that is in the variable to the universal display file and have it display it properly?

I like to put the html in a field in a file and just write it to the screen.

It would be nice to have a data type of HTML CONTAINER on the universal display file when inserting a field into the html record format.

Any advise is very welcome. Thanks Ric

Re: HTML variable in universal display file

Posted: Mon Nov 16, 2015 4:44 pm
by Scott Klement
Does it do this even when the document type = "text"?

The idea was supposed to be that if the document type is HTML, the Universal display will automatically escape things so that you can write fields from your database without needing to worry about 'special' characters . However, it should only do that for the document type you set -- so if the document type is not html, it should not attempt to escape html.

Re: HTML variable in universal display file

Posted: Wed Nov 18, 2015 2:54 pm
by rict
Thanks Scott. However it still did not work when I tested it as a "TEXT" document.

Perhaps Profound would consider giving us a HTML variable type for universal display files that would accomplish what I am trying to do (which is have some html in the document itself and passing to it program generated html via a bound variable. A variable type that is defined as html (like the html container in rich display files).

Thanks, Ric