VMware Cloud Community
St0ked56
Contributor
Contributor
Jump to solution

Create a summary

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

0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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.

Screen shot 2012-07-25 at 7.21.39 PM.png

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

0 Kudos
11 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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.

Screen shot 2012-07-25 at 7.21.39 PM.png

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
0 Kudos
St0ked56
Contributor
Contributor
Jump to solution

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!

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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.

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
St0ked56
Contributor
Contributor
Jump to solution

Where exactly is the conf directory containing vmo.properties?

0 Kudos
Burke-
VMware Employee
VMware Employee
Jump to solution

vcoInstallationFolder\app-server\server\vmo\conf

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 vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
St0ked56
Contributor
Contributor
Jump to solution

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";
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Add a  <BR> tag.

My fault: these are web view: need html tags.

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
0 Kudos
St0ked56
Contributor
Contributor
Jump to solution

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?

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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.

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
0 Kudos
St0ked56
Contributor
Contributor
Jump to solution

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

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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 Smiley Happy

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
0 Kudos