on 2023 Feb 22 12:01 PM
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é
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
7 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.