Hi I have collection in my controller for ex say
def devices=[ [id:PPL000000011906, firstName:Adam, lastName:Baines], [id:PPL000000010836, firstName:Adam, lastName:Baines], [id:PPL000000015137, firstName:Adan, lastName:Saenz], [id:PPL000000015136, firstName:Adan, lastName:Saenz]]
I will be getting the id from my view. How can I get firstname and lastname values from my Map based on the ID.
Thanks,
Siva
Basically, you can use
findto locate the list entry with the givenid. Here’s an example