VMware Cloud Community
future2000
Enthusiast
Enthusiast

Dynamic drop down providing values for other custom properties

In our provisioning we use a custom property named server.role. This is a static dropdown list with name / value pairs such as the following

Name: Web Server / Value: WEB

Name: SQL Server / Value: SQL

Name: Exhange Mailbox Server. / Value: EXM

We use the Custom Naming package and need to name the servers based on the value of the above server role. We therefore have another custom property which is used by the custom naming package and named APP which is linked to an external. action in vRO. The action has a string input named serverRole which is bound to serverRole, it then takes the value of the server.role and pushes into the form the value of APP so that the system gets provisioned with the correct name applied.

The action code is similar to the following

if (serverRole == 'WEB')

    {APP.push("WEB");

    return APP;

    }

if (serverRole == 'SQL')

    {APP.push("SQL");

    return APP;

    }

if (serverRole == 'EXM')

    {APP.push("EXM");

    return APP.;

    }

Both property server.role and APP are added to the blueprint and shown in the form.

As a result of this configuration the form allows the user to select the server.role and the next dropdown is constrained to only allow selection of the correct app.name.

What I am trying to determine is whether it is possible to:-

    1) Not necessitate the user even selects the app.name (by default a blank row is shown and the user has to manually select the only value displayed

    or

    2) not even display the app.name and have the property set automatically in the vRA . provisioned system so that the custom naming package names the system correctly.

Are either of these options possible? Or is there a better way to achieve my required outcome. Namely that the user only selects the server.role and the custom property APP is set correctly so that the custom naming package names the system based on the selected role.

0 Kudos
0 Replies