Skip to content
Martin Hradil edited this page Jun 25, 2019 · 8 revisions

This page is meant to describe various details of the service dialog data formats, implementation, etc. The UI part is currently implemented as 2 components - dialog editor and dialog user.


(TODO describe formats)


value vs default_value

(from https://github.com/ManageIQ/ui-components/pull/392#discussion_r296871830)

On the automate side, you want to set the 'value' key like you're doing above: $evm.object['value'] = something

However, on the ui-components side, for most of the field types, default_value is the value that is getting passed back from the refresh API call that we should be looking at to determine what to show to the user after a refresh happens. We changed it in 7dcb1f7. For sorted items, values is the key we use since it needs to be a list, and default_value is simply the one that is selected from that list.

On the ui-components side, because of the way datetime controls work, there's special logic for the date and time parts because the default_value comes in as a string (cause it's just a JSON response), and then it gets parsed and separated into a dateField and a timeField since the controls are separate.

Clone this wiki locally