VMware Cloud Community
qc4vmware
Virtuoso
Virtuoso

Custom validation not working in a webview

I have a custom validation that for some reason I can't get to work in  a webview but is working fine in the vCO client.  I am doing quite a few of these and all the others are working fine.  The custom validation has a fairly long name to the action.  I also pass the validtion 3 parameters which are all arrays.  To troubleshoot it I simply set the validtion routine to spit back a string with each of the array lengths.  This error pops up fine and displays all of the arrays fine in the vCO client but when I try to run it from the webview I get nothing returned.

0 Kudos
6 Replies
cdecanini_
VMware Employee
VMware Employee

Validations in the webviews are calculated by steps. If your action has for input a field of the same step it may not work if you placed your input in the same step.

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
qc4vmware
Virtuoso
Virtuoso

2 of the inputs are in the same step and one of the inputs is from a previous step.  Something like this:

Step 1 - Array A

Step 2 - Array B and C

Custom validation is on the input for array C passing the action all 3 arrays.

I am thinking maybe I can trick this with a data binding on a field in Step 2 and hiding the input of that field?  Bind array D to array A then pass arrays B,C,D to the action?

0 Kudos
cdecanini_
VMware Employee
VMware Employee

Sometimes it happens that the validation is not called once the last input has been filled but before.

Moving the last input as the first parameter of the action can help to trigger a new validation.

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
qc4vmware
Virtuoso
Virtuoso

The last input is the first input to the action already.

0 Kudos
igaydajiev
VMware Employee
VMware Employee

Could you attach a sample workflow demonstrating the issue.

Which version of vCO are you using?

0 Kudos
qc4vmware
Virtuoso
Virtuoso

I just figured out this was all operator error (I think).  It appears the validation does not trigger on an array until a value is placed in the array.  I think the validation does trigger on other fields even when they are left empty as I have had to account for null values in my validations

0 Kudos