Hi,
In the workflow I have now I have the end user specify CPU,RAM,Disk, etc. Once the end user specifies those details an email is sent to an approver. What I would like to do is parrellof having the details sent in an email, I would like to be able to present the summary on the approve or cancel form that the approver must goto in the webview (Attached pic). So where it says summary I would like the to be a mult-text box with all the vApp/VM details.
Is this possible?
Thank you
Yes it is possible. You can look at the Approve vApp workflow we have included in the notification package. You can add all the summary in a string and display it with the following syntax.
Christophe.
Yes it is possible. You can look at the Approve vApp workflow we have included in the notification package. You can add all the summary in a string and display it with the following syntax.
Christophe.
This answered my question but raised a new one. Now I am having formatting issues. How would I go about doing multiple lines. I tried </p>,</n> and it still goes on the same line. This is test data that I am trying now? How would I go about separating the lines?
displayContent = "Jira Ticket: " + JiraTIcket + "\n"+ "CPU Count: " + newCPUCount + "\n";I put in the General field ${displayContent}.
Thanks for you help!
If you need the formating in the web-views keep your "\n" and try this:
In the conf firectory edit vmo.propeties file and add:
com.vmware.o11n.webview.htmlescaping.disabled = false
webview.raw.enabled = true
Christophe.
Where exactly is the conf directory containing vmo.properties?
vcoInstallationFolder\app-server\server\vmo\conf
I added the 2 lines of code to the vmo.properties (See pic). I restarted the vCO Server through the configuration portal. I currently have the below code for the summary output. I still get the output to show on oneline and shows the \n as a string instead of a new line (See pic).
displayContent = "Jira Ticket: " + JiraTIcket + "\n"+ "CPU Count: " + newCPUCount + "\n";
Add a <BR> tag.
My fault: these are web view: need html tags.
I tried adding the <BR> to the code but it still reads it as part of the string and keeps everything on the same line. I am not exactly sure where the <BR> needs to go. I tried putting it like "<BR>/n". I tried without quotes, but get an error. I have also tried putting the <BR> into the general tab which only printed it to the screen. Can you show me an example of how to skip a line with basic code?
The example is in the notification package I mentioned before (in the document tab). The approve vApp has such a summary.
Could you please try if this works for you. I thought the 2 properties I provided where the one fixing hte issue of html escaping but I do not know why it does not work for you.
Christophe.
Figured out the issue as to why the html wasn't working.
In the vmo.properties files the 2 lines of code should be set to true
com.vmware.o11n.webview.htmlescaping.disabled = true
webview.raw.enabled = true
Good catch and sorry for the quick copy and paste ...
I did not even think of checking this bit.
Time for me to get some vacations
Christophe.