Skip to Content
1
Oct 20, 2022 at 12:05 AM

How to get List Picker Selected Context in SAP MDK app?

295 Views

HI,

I have a list picker in my page, wanted to get the List Picker selected item (Not the display or return value, I want the whole context, so I can use other properties in the selected item).

I used,

context.evaluateTargetPath("#Page:PageName/#Control:ListPicker/#SelectedTarget"),

but I am getting below error.

Uncaught Error: Could not evaluate the selected index of the control.

Is there a better way pass values between the pages?

Thanks in advance,

Ram