Search Support
-
TodorJuly 10, 2017 at 2:19 am #4484
I have a list of Domain objects each with name and displayName parameters. When using service to get the list of Domains and assign:
Item Lookup mode – Items from service
Items selection data: option value property: name
Items selection data: option value property: displayName
The Domain objects show properly in the Single Select. If I make a selection in the drop-down, the bound object contains a parameter “value” with value of the “displayName” parameter. The bound Domain object has:
name – set correctly
displayName – empty
value – the value of the “displayName” parameter.
Is this a bug or I’m doing something wrong?
SPARK SupportJuly 10, 2017 at 10:41 am #4485Hi Todor,
I would need more information to determine if there is a potential defect, including screenshots of the Single Select configuration, variables and runtime output.
However, please inspect this test scenario I have put together to see if this answers you question. This Coach contains two Single Select controls, each configured with Lookup Data Mapping and Business Data Mapping for a complex type. The Option Value Property is set to retrieve the key or name in a Name/Value pair, whereas the Option Display Property retrieves the display text or value in a Name/Value pair.
Please see the screenshot showing the two Single Select controls. On the left, the Single Select is bound to a complex type. When the option is selected from the drop down, the Business Data Mapping configuration sets the properties of the complex variable according to the parameters of the Option Value and Option Display properties.
The Single Select control on the right is not bound to any variable. Instead, the subsequent Text, Integer and Decimal controls are bound to properties of List Selected member of the complex type list.
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.