User bio
404 bio not found
Member since Jul 5, 2016
Replies:

Hi Ray,

You can use the <html> Zen component to insert raw HTML content into your page. There are a number of different approaches that use this component to display monospaced text, but I'll highlight just one.

First, add an <html> component to your XData Contents block, as follows:

<html id="txaSPRINT"></html>

The id of the component is "txaSPRINT" which matches the CSS in your XData Style block. This means the contents of the <html> component will be monospaced text; you do not necessarily need a <pre> tag. The only thing left is to insert the text, which you could do with the following javascript method:

ClientMethod updateMonospaceTextbox(content) [ Language = javascript ]
{
	zen('txaSPRINT').setContent(content)
}

You can also update the text from the server, using this ZenMethod:

Method UpdateTextbox(content As %String) [ ZenMethod ]
{
	Set textbox = ..%GetComponentById("txaSPRINT")
	Set textbox.content = content
}
Certifications & Credly badges:
Michael has no Certifications & Credly badges yet.
Global Masters badges:
Michael has no Global Masters badges yet.
Followers:
Michael has no followers yet.
Following:
Michael has not followed anybody yet.