+ Start a Discussion
Charni WigginsCharni Wiggins 

Visualforce datatable button to show popup with selected record data

I have a visualforce page which has a datatable displaying a list of records. I would like the last column in this table to be a button which opens a popup/modal which will show further detail of this record. What is the best way to achieve this?
Yogeshwar TailorYogeshwar Tailor
Hi Charni,

Use Bootstrap Model to achive this functionalty. While invoking model call server side action with particaular(row) recordId and show the record detail in model window.

https://www.w3schools.com/bootstrap/bootstrap_modal.asp

Thanks,
Yogesh
Raj VakatiRaj Vakati
Refer this link 
https://salesforce.stackexchange.com/questions/36796/i-want-to-add-records-into-a-table-in-popup-using-visualforce-and-apex
https://developer.salesforce.com/forums/?id=906F0000000AuGHIA0
http://sfdcmonkey.com/2019/03/28/display-modal-lightning-web-component/
http://sfdcmonkey.com/2017/01/26/display-record-with-pager-buttons-lightning-component/
https://stackoverflow.com/questions/50056286/jquery-datatable-on-row-click-brings-the-old-data-in-a-pop-up
https://jpescador.com/blog/create-reports-using-javascript-remoting-and-datatables/