cancel
Showing results for 
Search instead for 
Did you mean: 

ListPicker control doens't provide binding to OData target on MDK Client 6.3.5 for Android

rene_mueller02
Advisor
Advisor
0 Kudos
194

Hello experts,

I'm facing an issue with ListPicker control of SAP MDK 6.3.5 when it runs on Android.

The problem is that the ListPicker doesn't provide any bound OData data. Use Case: Items from OData EntitySet are bound as target to ListPicker and the ListPicker provides a list of them. When selected i would like to get all the data (some more properties) behind that entity to prefill other ListPicker controls on the same page.

The MDK ListPicker reference states that this should be possible via TargetPath ending on #SelectedTarget (or on #SelectedRow for at least the index of the selected item in list) but this doesn't work for me. Also binding property is undefined for the ListPicker control.

Here you can see part of the page with corresponding ListPicker:

In the OnValueChange handler i then cant use something like:

pageProxy.evaluateTargetPath("#Page:-Current/#Control:VehicleListPicker/#SelectedTarget");

I debugged this thoroughly but no chance of getting the vehicle item's data in that case.

I mean this should work like that right? Or do you see any issue here?

I can work around this issue with OData ActionResult but it would be way more convenient to use it as stated in API reference.

Please help. 🙂

Best Regards,

René

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have not used those target paths you mention before myself. I will have to look into them.

Today the best option is probably to do an odata read to grab the full data of the selected item. We do also have a backlog item to better expose that as part of the return value but I don't have a timeline on when that will be added.

I would suggest checking (and logging if not there) the influence site for this request as well to help prioritize it.