VMware Cloud Community
anoopvb
Enthusiast
Enthusiast

vRO presentation vs vSphere Web Client presentation

Have a very odd issue here.

A workflow i created runs perfectly on the vRO client.

The first step has an input that displays as a list and that works very well.

the second step is supposed to display a list based on the selection of the first step but it just shows up as a test box. Screen Shot 2017-06-21 at 10.23.16 PM.png

on vRO, this is the presentation. Am i doing something wrong here?

Screen Shot 2017-06-21 at 10.25.36 PM.png

Thanks!

2 Replies
iiliev
VMware Employee
VMware Employee

Hi,

I suppose the content of the list to be shown on the second step is computed by a scripting action taking the value from the first step as an input parameter?

If so, then most likely the problem is in the way how the scripting action code handles null/empty input parameter. Does it return null or throw an exception? Please make sure that for null/empty input the action returns an empty array instead, and this should solve the issue.

anoopvb
Enthusiast
Enthusiast

Ahhh yes. it is using an action to populate.

so you're thinking that one of the parameters sent to the action initially is "null" and that the action isn't handling it correctly?

if that's the case, doesn't changing the input on the first step cause it to recalculate in which case it should return an array?

i think that "null" is probably being sent because the vRO presentation always populates the list of appliances with one selected. vWC however doesn't have one selected by default. Maybe that's the issue?

I'll try to put in some code to handle a null input parameter and return an empty array.

thanks!

Reply
0 Kudos