use data from openlightbox to populate dataset

Thank you for the response. It is correct. I want to know if the approach I am taking overall is correct or is there a better way to go about it.