Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2762

Fetch default values for the ActiveMultiSelect widget

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • orchestrator-ui
    • False
    • Hide

      None

      Show
      None
    • False

      This will be addition on top of the "mandatory" values for the ActiveMultiSelect widget.

      Request:
      ```
      Is it possible to have default values selected for "ActiveMultiSelect" widget, I am trying to use this configuration to load existing groups for "update" actions, I am getting the list, however those are not selected by default."type": "string",
      "ui:widget": "ActiveMultiSelect"
      "ui:props": {
      "fetch:url": "$${{backend.baseUrl/api/ford-proxy/cldctl-prod/api/v1/rendersolution",}}
      "fetch:method": "POST",
      "fetch:body": {
      "action": "$${{current.select_action.action",}}
      "beta": false,
      "solutionName": "app-registration",
      },
      "fetch:response:value": "renderedMappings._.data.profiles.defaultAdministratorsGroup",
      "fetch:response:autocomplete": "renderedMappings._.data.profiles.defaultAdministratorsGroup"
      }
      ```

      Resolution:
      ```
      The JSON selector for a default value (so the value until the user performs any change) will be: "fetch:response:value".
      If "fetch:response:value" and "fetch:response:mandatory" are used together, the initial pre-selected values will consist of a union of those two and the "mandatory" options can not be unselected.
      ```

              mlibra@redhat.com Marek Libra
              mlibra@redhat.com Marek Libra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: