Can't close modal inside a listview

Chris, the modal1[i].close() worked fine!

Regarding the ideal approach you've mentioned, the listview button would call a modal1.open() query, correct? But how would I pass values from the listview instance to the modal outside the listview?