Bug 1393001 - [RFE] Add calling element ID to Dynamic Dropdown environment
Summary: [RFE] Add calling element ID to Dynamic Dropdown environment
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: John Hardy
QA Contact: Shveta
URL:
Whiteboard: dialog:service
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-08 16:38 UTC by Jeff Warnica
Modified: 2019-12-18 14:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-18 14:27:11 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:


Attachments (Terms of Use)

Description Jeff Warnica 2016-11-08 16:38:49 UTC
add to $evm.root[attributes], e.g. `calling_ui_element`


Consider a multi-tiered service, with 3 VM's. The VM's themselves can be in different locations, and available templates are location dependent. The template dropdown is dynamic, and populated by code; the code itself is the same, but for knowing where to look up its search criteria. In this example, dialog_N_template is always keyed off dialog_N_location.

Currently, to implement, one would need to create three instances, e.g. list_vms_for_location_1, list_vms_for_location_2, list_vms_for_location_3, which have an instance variable like `fieldid`, calling into list_vms_for_location_n.

If the dynamic dropdown builder environment included the calling elements name, then this indirection would be unnecessary, and N could be found in code.

Alternatively, maybe even better, would be if the service dialog could pass in arbitrary URL args or JSON or something through the form builder.

Comment 2 Greg McCullough 2016-11-08 20:16:52 UTC
https://www.pivotaltracker.com/story/show/133956121


Note You need to log in before you can comment on or make changes to this bug.