cancel
Showing results for 
Search instead for 
Did you mean: 

List Picker returns wrong return value

urauf
Explorer
0 Kudos

Hi, I have created a simple an online app with a Create Order page using the "Form Cell Page" template with a List Picker control on it. The List Picker is bound to an OData Entity "PriorityVHSet" using "Object binding on entityset." The List Picker opens up fine and properly displays the list of priorities from the bound OData Service/Entity Set. However, regardless of which value I select (Very High, High, Medium, Low), the List Picker control on the page resets the selection to the first value (Very img-3312.pngimg-3313.pngimg-3314.pngHigh) in the list. Please find below the metadata for the List Picker control. Anyone else experienced such issue?

{

"AllowEmptySelection": false,

"AllowMultipleSelection": false,

"Caption": "Priority",

"IsEditable": true,

"IsPickerDismissedOnSelection": false,

"IsSearchCancelledAfterSelection": false,

"IsSelectedSectionEnabled": false,

"IsVisible": true,

"PickerItems": {

"DisplayValue": "{PriorityCode}",

"ReturnValue": "{PriorityCode}",

"Target": {

"EntitySet": "PriorityVHSet",

"Service": "/MyApp/Services/MainService.service" } },

"PickerPrompt": "Please select one single item",

"_Name": "FormCellListPicker0",

"_Type": "Control.Type.FormCell.ListPicker" }

ashishjain14
Employee
Employee
0 Kudos

what version of MDK are you using?

urauf
Explorer
0 Kudos

Version 4.3.1

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

urauf

Could you raise a ticket (select component MOB-MDK) regarding your issue?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

When opening the ticket please be sure to include the export of your metadata for the application and make sure the $metadata is present in the services folder for MainService

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

urauf
Explorer
0 Kudos

Thank you all. After further debugging, I have found the issue. Filter was not implemented on PriorityVHSet. I was under the impression that it calls the Entity on selection. After implementing the Filter on PriorityCode in PriorityVHSet, the issue has been resolved.

Answers (0)