Is this an XaaS Request form? If so then you're generally better off to convert data values to strings in the vRO JS code as it makes presentation simple and more reliable.
Also, based on your logical flow you have a contextual dependency between the VM selection the CPU count - meaning that you need do the following after the VM is chosen
- Locate vCAC VM entry for the named VM
- Locate the VC VM entry for the named VM
Whichever you do, you need that object to get the sizing data which you will return for display.
When I do this in XaaS forms I usually use the "External Value" option to execute a vRO action which will return either a string or an array of strings (depending on what control I'm feeding). The vRO action can accept parameters from the form so you can write your action to accept a VM object (or name) and the handle the rest for you to get the CPU count
Hello, that is correct, this is an XaaS Request form. Also, there is a contextual dependency between the VM selection the CPU count.
So in input field #1, the VM value is entered. Next, I would create field #2 with a vRO action attached as its value, and have that action return a value? And the value will be displayed in field #2?
Also, "The vRO action can accept parameters from the form so you can write your action to accept a VM object (or name) and the handle the rest for you to get the CPU count"
- How would I pass the input entered from field #1 into the action in field #2?
Sounds good. Thanks for your reply!
The action supporting the data fields there must be throwing an error perhaps? You'll need to tail the file
while the action runs to see what is happening.
Make sure your actions have System.log calls in them to trace the activity
Odd, it seems to work when the field in the catalog is a drop down menu. Close enough, thanks!
What data type does your action return? Have you tried to return a string?