VMware Cloud Community
RainerVM
Enthusiast
Enthusiast
Jump to solution

How to display linefeeds in vCO-WebView?

Hi,

I just want to know how I can make it possible to display linefeeds in a workflow presentation with vCO-WebOperator-WebView in the new vCO-Version 4.2.1?

In the old version it was easy, I just used the HTML-Tag <br>, but in the new version it will write it as text as you can see here:

vCO-Wf-Pres_01.jpg

When I use the vCO-Client it will work when \n is used as you can see below, but also not in the WebWiew (see above):

vCO-Wf-Pres_02.jpg

Please can you give me a hint.

Best regards

Rainer

Reply
0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Set this property: com.vmware.o11n.webview.htmlescaping.disabled = true

As described in the vCO 4.2.1 release notes.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

Reply
0 Kudos
6 Replies
igaydajiev
VMware Employee
VMware Employee
Jump to solution

This  feature was introduced in 4.2.1. But actually it can be switched off using some properties,

You can chek here :

http://communities.vmware.com/thread/333153?start=15&tstart=0

Reply
0 Kudos
RainerVM
Enthusiast
Enthusiast
Jump to solution

Hi igaydajiev,

sorry, your answer and the link you wrote got me somehow confused.

Which property you mean? "Hide parameter input"? I don't want to hide the description, I want to show it but including linefeeds not with \n or <br> as text.

Maybe I didn't explain exactly.

This is what I want to see (screenshot created with old vCO version):

vCO-Wf-Pres_03.jpg

To display this I used this variable in the Description field of the presentation group:

vCO-Wf-Pres_04.jpg

The variable contains this value:

info = "Here some information:<br>OS=...<br>CPU=...<br>RAM=...";

But in the new vCO-version 4.2.1 the HTML-Tags <br> won't work anymore, nor the javascript newline character \n.

Best regards

Rainer

Reply
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Set this property: com.vmware.o11n.webview.htmlescaping.disabled = true

As described in the vCO 4.2.1 release notes.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Reply
0 Kudos
RainerVM
Enthusiast
Enthusiast
Jump to solution

Hi Christophe,

great, that's what I meant Smiley Happy, many thanks.

Is there any guide which describes other configuration properies which are available to use? Maybe some others would be helpful, too.

Best regards

Rainer

Reply
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

The supported ones should be documented in the vCO documentation. If one is missing then this is a documentation bug: Something that can be fixed by opening a support request.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Reply
0 Kudos
igaydajiev
VMware Employee
VMware Employee
Jump to solution

Sorry about that.

Actually the usefull information was on the seconnd page, comment #15

This should be the correct link pointing to the message.

http://communities.vmware.com/message/1888606#1888606

...

webview.raw.enabled=true

#If set to true, disables HTML escaping for the web views.  Default value is false

com.vmware.o11n.webview.htmlescaping.disabled=true

#If set to true disables HTML tags escaping in the workflow titles and descriptions, in the web views. Default value is false
Reply
0 Kudos