cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement Checkmark and multiple selection using MDK?

former_member607433
Discoverer
0 Kudos

I want to implement filter functionality using MDK. If accessory type of checkmark is provided, i believe, by tapping on it should uncheck the field.

Can this be achieved?

Also, how can we have multiple selection achieved?

PFB Sample Screenshot.

screenshot-2019-04-04-at-41351-pm.png

Accepted Solutions (0)

Answers (2)

Answers (2)

elavarasanselvam
Explorer
0 Kudos

Hello Experts,

We have used List picker for multiple selection. Can select multiple options but it saved as only one value which I selected first.

What we are analyzed means the list picker are passing as array in returns, so we did OnChange event listener rules with loop over collection.
To take the value from array into the string property in order to send to backend as string property. But unfortunately we are not achieved it.

Any suggestion/solutions here?

Regards,

Lavanya Ganapathi

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

In summary, yes you can write your app such that when you tap on a cell it shows/toggles the accessory type checkmark. An alternative would be to use an icon in the icon stack (far left of the cell) to also show a similar checkmark. Both cases will require you to write a rule for the OnPress to either update a property on the underlying item or use a temporary storage like client data to store the selected state of each item.

In terms of multi-select, so while we don't currently have a native multi-select experience yet in MDK, you can provide a similar capability using what you are describing here and by tracking the selected states of the list items. Then you can have a rule loop over the selected items and process them accordingly.

--Bill

former_member607433
Discoverer
0 Kudos

An alternative would be to use an icon in the icon stack (far left of the cell) to also show a similar checkmark. --> Correct me if i'am wrong, this can only be achieved for a static data, not for a dynamic data population, right ?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

No, this will work for dynamic data population as well. You just need to use a rule to determine when to show the checkmark in the icon stack.

former_member607433
Discoverer
0 Kudos

In MDK, being new, it sometimes gets challenging to implement some functionalities.

It would be a great help if tutorials/blog can be posted for this. Thanks!

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Arjun Baru

Were you able to resolve your issue? If so, please post an answer so others might benefit from your findings.