Above is the data table in which I am pulling data from database and displaying in different column.
as shown in the screen.
I want to show pop at every failed record which will show reason for failed record.
but I am confuse how do I do that.since all the data are dynamic how do i select the that data. for an example 121
,2
and 72
are failed, so I need to show a pop after clicking on 121
,2
and 72
. As we can see in failed column we have 0 also. then if user click on zero it should not allow to open popup.
list is dynamic I can get more than 100 failed records. so at every failed records I need to show pop.
Popup would have table containing four columns. for an example a b c d.
1. How do I identify `121` `2` `72` or any other failed record.
2. How do I show a pop-up after clicking on failed records.
this is the code for Data Table
var oTable = $('#example')
.dataTable(
{
"processing" : true,
"serverSide": true,
"autoWidth" : true,
"order": [[ 0, "desc" ]],
"ajax" : {
"url" : '//myurl',
"dataSrc" : ""
},
"columns" : [
{
"data" : "recordcount"
},
{
"data" : "record failed"
] }
}
Since we are getting the data in compact form. how to know which are failed.
I am beginner, trying to learn new things. I dint have any idea how to achieve this. please help me.