JeanChristopheD
Enthusiast
Enthusiast

How to use conditional default values in vRA ?

Hi,

I'm currently working with vRealize Automation 7.4.0 and vRealize Orchestrator 7.4.0 and got a strange behavior with setting a default value on a field.

First, a simple hardcoded list :

pastedImage_0.png

Nothing exotic, all by default.

Now the default value that is set in link to the selected environment :

pastedImage_3.png

One default value for DEV and another one for PRD.

At the form opening, no value is set :

pastedImage_8.png

Once you select DEV, the correct default value appears in cpu field :

pastedImage_13.png

Now if you switch to PRD, cpu default value is not updated (it should be 😎 :

pastedImage_14.png

In fact, once the "first" default value is resolved, it's no more updated whatever if the condition controlling it changes or not.

Can-you help me having the right expected behavior as I do not see what is wrong ?

Thanks !

Tags (2)
0 Kudos
4 Replies
JeanChristopheD
Enthusiast
Enthusiast

Another thing that is even more strange.

I made another field this the EXACT SAME conditions but with a new id that is not known as an input on vRO side :

pastedImage_0.png

And it works like it should following the exact same protocol (always failed for the cpu field) :

pastedImage_1.png

So having a field ID that is a vRO expected input breaks the correct update of the default value oO ? :smileyconfused::smileyshocked:

0 Kudos
Alex0H
Contributor
Contributor

No updates on this? We have the same issue… and still found no workaround this. 😞

0 Kudos
JeanChristopheD
Enthusiast
Enthusiast

Hi,

In the meantime, we updated to 7.5 and discussed with VMware R&D team to get a better understanding about what could be done.

The present status is that it is a known limitation of the "legacy" Xaas solution engine that is not planned to be fixed.

Official workaround is to move on "Custom Form" instead, but that other option is *quite* bumpy on 7.5 🙂

Regards.

0 Kudos
stevedrummond
Hot Shot
Hot Shot

default values are only determined at form build time and never again; this applies to XaaS and vRO presentation bindings.

My advice to you is do not use XaaS form designer; only use it when you cannot control it from vRO presentation (read only value, left/right box and checkbox display, certain bindable properties [e.g., subtenant group name]).

In your case you will want to use the Data Binding presentation field in vRO. If your case is as simple as you describe make it #environment == 'PRD' ? 8 : 4. If you will need to work with more values then create an action that has the logic you need and set the presentation to your action (e.g., GetAction('your.action.path').call(#environment)).

0 Kudos