- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个包含许多记录的 jQuery 数据表。其中有几列,其中一列名称是 STATUS 。在该状态中有很多状态信息。
所以我想要的是,我想要状态为CMM Approved
的状态列的数据。
下面是相同的代码:
<link href="//cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" rel="stylesheet"/>
<script src="//cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<div class="table-responsive3"><div class="dataTables_scroll"><div class="dataTables_scrollHead" style="overflow: hidden; position: relative; border: 0px; width: 100%;"><div class="dataTables_scrollHeadInner" style="box-sizing: content-box; width: 1968px; padding-right: 0px;"><table class="sites myTable table table-striped table-bordered nowrap dataTable no-footer" ui-jq="dataTable" ui-options="dataTableOpt" cellspacing="0" width="100%" role="grid" style="margin-left: 0px; width: 1968px;"><thead><tr role="row"><th class="select-checkbox sorting_disabled" rowspan="1" colspan="1" style="width: 20px;" aria-label=""></th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 42px;" aria-label="Action: activate to sort column ascending">Action</th><th class="sorting_asc" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 103px;" aria-label="SAP ID: activate to sort column ascending">SAP ID</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 132px;" aria-label="NETWORK ENTITY ID: activate to sort column ascending">NETWORK ENTITY ID</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 122px;" aria-label="SITE NAME: activate to sort column ascending">SITE NAME</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 103px;" aria-label="ASSESTS COUNT: activate to sort column ascending">ASSESTS COUNT</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 91px;" aria-label="SERVICE CODE: activate to sort column ascending">SERVICE CODE</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 426px;" aria-label="SHORT DESC: activate to sort column ascending">SHORT DESC</th><th class="sorting_asc" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 78px;" aria-label="SITE STATUS: activate to sort column ascending">SITE STATUS</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 68px;" aria-label="RFE1 DATE: activate to sort column ascending">RFE1 DATE</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 62px;" aria-label="RFR DATE: activate to sort column ascending">RFR DATE</th><th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 163px;" aria-label="VENDOR: activate to sort column ascending">VENDOR</th><th class="sorting_asc" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 114px;" aria-label="STATUS: activate to sort column descending" aria-sort="ascending">STATUS</th></tr></thead></table></div></div><div class="dataTables_scrollBody" style="position: relative; overflow: auto; width: 100%;"><table id="certifyEFO" class="sites myTable table table-striped table-bordered nowrap dataTable no-footer" ui-jq="dataTable" ui-options="dataTableOpt" cellspacing="0" width="100%" role="grid" aria-describedby="certifyEFO_info" style="width: 100%;"><thead><tr role="row" style="height: 0px;"><th class="select-checkbox sorting_disabled" rowspan="1" colspan="1" style="width: 20px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label=""><div class="dataTables_sizing" style="height:0;overflow:hidden;"></div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 42px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="Action: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">Action</div></th><th class="sorting_asc" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 103px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="SAP ID: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">SAP ID</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 132px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="NETWORK ENTITY ID: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">NETWORK ENTITY ID</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 122px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="SITE NAME: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">SITE NAME</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 103px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="ASSESTS COUNT: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">ASSESTS COUNT</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 91px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="SERVICE CODE: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">SERVICE CODE</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 426px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="SHORT DESC: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">SHORT DESC</div></th><th class="sorting_asc" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 78px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="SITE STATUS: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">SITE STATUS</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 68px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="RFE1 DATE: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">RFE1 DATE</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 62px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="RFR DATE: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">RFR DATE</div></th><th class="sorting" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 163px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="VENDOR: activate to sort column ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">VENDOR</div></th><th class="sorting_asc" aria-controls="certifyEFO" rowspan="1" colspan="1" style="width: 114px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" aria-label="STATUS: activate to sort column descending" aria-sort="ascending"><div class="dataTables_sizing" style="height:0;overflow:hidden;">STATUS</div></th></tr></thead><tbody id="datagrdbody"><tr role="row" class="odd"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AMRP-ENB-6000</td><td>INAPAMRPAMRPTW6001</td><td>AMARAPURAM</td><td>0</td><td></td><td></td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">ASSIGNED TO VENDOR</td></tr><tr role="row" class="even"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AMRP-ENB-6001</td><td>INAPAMRPXXXXTW6003</td><td>BASAVANAHALLI</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">ASSIGNED TO VENDOR</td></tr><tr role="row" class="odd"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AMRP-ENB-6002</td><td>INAPAMRPXXXXTW6002</td><td>THAMMADEHALLI</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">ASSIGNED TO VENDOR</td></tr><tr class="disableRow even" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AGLI-ENB-6001</td><td>INAPAGLIXXXXTW6002</td><td>INAGALORE</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr><tr class="disableRow odd" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AGLI-ENB-6002</td><td>INAPAGLIXXXXTW6003</td><td>KODIHALLI</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr><tr class="disableRow even" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AGLI-ENB-9004</td><td>INAPHDPRXXXXTW0007</td><td>Thumakunta Check Post</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr><tr class="disableRow odd" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AGLI-ENB-9005</td><td>INAPAGLIXXXXTW0003</td><td>P.bedagira village</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr><tr class="disableRow even" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AGLI-ENB-9006</td><td>INAPAGLIXXXXTW0004</td><td>H D HALLI THANDA</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr><tr class="disableRow odd" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AGLI-ENB-9007</td><td>INAPAGLIAGLITW0001</td><td>sira road</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr><tr class="disableRow even" role="row"><td class="select-checkbox"></td><td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td><td class="sorting_3">I-AP-AMLD-ENB-6000</td><td>INAPAMLDAMLDTW0001</td><td>AMIDALAGONDI</td><td>0</td><td>3310744</td><td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td><td class="sorting_2">ACTIVE</td><td>09/07/2019</td><td> </td><td>Delton Infra P Limited - 396475</td><td class="sorting_1">CMM APPROVED</td></tr></tbody></table></div></div></div>
还提供了相同的 fiddle 。
最佳答案
我假设您想要filter
DataTable 并获取 JSON
大批。虽然没有这样直接的解决方案来满足您的需求,但我们可以通过一些 jQuery
来实现。技巧。
我在 fiddle 中所做的是,我首先得到所有 rows
来自DataTable
并从此数组中删除了不必要的数据。
完成后,我将使用 jQuery
获取列列表.
最后一步是创建最终的 JSON
通过循环行和列来数组。因此,最后,filtered_data
是您想要的输出。
如果这不是您想要的形式,请告诉我。
此外,您可以检查以下 fiddle 。
var table = $('#certifyEFO').DataTable();
var raw_data = table.rows().data().toArray();
for (var i in raw_data){
raw_data[i].splice(0,2);
}
var columns=[];
$("#certifyEFO thead tr th").each(function(){
columns.push(this.innerHTML.replace('\n', '').replace(' ', ' ').trim());
});
columns.splice(0, 2);
// console.log(raw_data);
var final_raw_data = [];
raw_data.filter(function(item){
var row_item = {}
item.filter(function(item_inner, index){
row_item[columns[index]] = item_inner;
return item_inner;
});
final_raw_data.push(row_item);
return item;
});
var filtered_data = final_raw_data.filter(function(item){
return item["STATUS"].toLowerCase() == 'cmm approved';
})
console.log(filtered_data);
// Create new DataTable from filtered_data
var columns_for_new_dt = [];
columns.filter(function(item){
columns_for_new_dt.push({ "data" : item, "title" : item })
});
table = $('#new_data_table').DataTable( {
columns: columns_for_new_dt,
data: filtered_data
});
<script src="https://cdn.datatables.net/1.10.0/css/jquery.dataTables.css"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script>
<table id="certifyEFO">
<thead>
<tr role="row">
<th class="select-checkbox sorting_disabled" rowspan="1" colspan="1" style="width: 20px;"
aria-label=""></th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 42px;" aria-label="Action: activate to sort column ascending">Action
</th>
<th class="sorting_asc" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 103px;" aria-label="SAP ID: activate to sort column ascending">SAP ID
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 132px;" aria-label="NETWORK ENTITY ID: activate to sort column ascending">
NETWORK ENTITY ID
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 122px;" aria-label="SITE NAME: activate to sort column ascending">SITE
NAME
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 103px;" aria-label="ASSESTS COUNT: activate to sort column ascending">
ASSESTS COUNT
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 91px;" aria-label="SERVICE CODE: activate to sort column ascending">
SERVICE CODE
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 426px;" aria-label="SHORT DESC: activate to sort column ascending">SHORT
DESC
</th>
<th class="sorting_asc" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 78px;" aria-label="SITE STATUS: activate to sort column ascending">SITE
STATUS
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 68px;" aria-label="RFE1 DATE: activate to sort column ascending">RFE1 DATE
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 62px;" aria-label="RFR DATE: activate to sort column ascending">RFR DATE
</th>
<th class="sorting" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 163px;" aria-label="VENDOR: activate to sort column ascending">VENDOR
</th>
<th class="sorting_asc" tabindex="0" aria-controls="certifyEFO" rowspan="1" colspan="1"
style="width: 114px;" aria-label="STATUS: activate to sort column descending"
aria-sort="ascending">STATUS
</th>
</tr>
</thead>
<tbody id="datagrdbody">
<tr role="row" class="odd">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AMRP-ENB-6000</td>
<td>INAPAMRPAMRPTW6001</td>
<td>AMARAPURAM</td>
<td>0</td>
<td></td>
<td></td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">ASSIGNED TO VENDOR</td>
</tr>
<tr role="row" class="even">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AMRP-ENB-6001</td>
<td>INAPAMRPXXXXTW6003</td>
<td>BASAVANAHALLI</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">ASSIGNED TO VENDOR</td>
</tr>
<tr role="row" class="odd">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AMRP-ENB-6002</td>
<td>INAPAMRPXXXXTW6002</td>
<td>THAMMADEHALLI</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">ASSIGNED TO VENDOR</td>
</tr>
<tr class="disableRow even" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AGLI-ENB-6001</td>
<td>INAPAGLIXXXXTW6002</td>
<td>INAGALORE</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
<tr class="disableRow odd" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AGLI-ENB-6002</td>
<td>INAPAGLIXXXXTW6003</td>
<td>KODIHALLI</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
<tr class="disableRow even" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AGLI-ENB-9004</td>
<td>INAPHDPRXXXXTW0007</td>
<td>Thumakunta Check Post</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
<tr class="disableRow odd" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AGLI-ENB-9005</td>
<td>INAPAGLIXXXXTW0003</td>
<td>P.bedagira village</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
<tr class="disableRow even" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AGLI-ENB-9006</td>
<td>INAPAGLIXXXXTW0004</td>
<td>H D HALLI THANDA</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
<tr class="disableRow odd" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AGLI-ENB-9007</td>
<td>INAPAGLIAGLITW0001</td>
<td>sira road</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
<tr class="disableRow even" role="row">
<td class="select-checkbox"></td>
<td><a class="actionIcon" id="discripancy"><i class="fa fa-flag"></i></a></td>
<td class="sorting_3">I-AP-AMLD-ENB-6000</td>
<td>INAPAMLDAMLDTW0001</td>
<td>AMIDALAGONDI</td>
<td>0</td>
<td>3310744</td>
<td>SMALL CELL INDOOR WITHOUT DGS / SMALL CELL INDOOR WITHOUT DGS</td>
<td class="sorting_2">ACTIVE</td>
<td>09/07/2019</td>
<td></td>
<td>Delton Infra P Limited - 396475</td>
<td class="sorting_1">CMM APPROVED</td>
</tr>
</tbody>
</table>
<b>NEW DataTable from filtered_data</b>
<table id="new_data_table"></table>
编辑
此外,您可以检查以下 fiddle ,其中包含用于过滤数据的新数据表。
关于javascript - 获取状态为CMM Approved的jQuery数据表的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59573724/
我有一个带有嵌套数据的 angular 数据表,我正在尝试在行点击函数上创建另一个数据表。父数据表的 rowCallBack 函数。 这是我的外部数据表 html; 这是我生成数据表的方
我有一个字母数字列,其中包含诸如“1、2、2”之类的字符串。 当我在搜索中输入“1, 2, 2”时,它似乎返回带有“1,”和“2,”的所有单元格。 我该怎么做才能使搜索仅返回“1、2、2”? 使用数据
我有一个获取其数据服务器端的表,使用自定义服务器端初始化参数,这些参数因生成的报告而异。表格生成后,用户可以打开一个弹出窗口,他们可以在其中添加多个附加过滤器以进行搜索。我需要能够使用与原始表相同的初
在 datatables我希望能够隐藏所有列,但似乎无法正确使用语法。 这来自下面的代码和上面的链接,创建了一个显示所有列的按钮。有没有办法写这个以便我可以隐藏所有列? {
我正在使用 DataTable 创建一个交互式表。我有 9 列,其中 5 列是值。我想根据它们的具体情况更改每个单元格的背景颜色。 我已经开始尝试首先更改整行颜色,因为这似乎是一项更容易的任务。但是我
我有一个简单的例子来说明我的问题。我正在使用数据表 1.9。当数据表位于另一个 html 表内时,水平滚动时列标题不会移动。当它不在 html 表中时它工作正常。我的示例实际上取自他们的水平滚动示例,
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
这是添加按钮以将数据导出到 csv、pdf、excel 的数据表示例...... fiddle here https://datatables.net/extensions/buttons/examp
是否有任何方法可以更改 angularjs 数据表中的按钮样式(colvis、copy、print、excel)。 vm.dtOptions = DTOptionsBuilder.newOptions
我试图弄清楚如何加入 2 个数据表并更新第一个但应用了过滤器。 DT DT2 b c 1: 1 10 2: 2 10 3: 3 10 4: 4 10 5: 5 10 6: 6 10 7: 7 10
我有一个数据表,其中包含许多包含值的列。我还有另一列,它定义了我需要选择哪些列的值。我很难找到一种方法来做到这一点。 这是一个简单的例子。 > d d value.1 value.2 name
我正在使用 data.table 包。我有一个数据表,表示用户在网站上的操作。假设每个用户都可以访问一个网站,并对其执行多项操作。我的原始数据表是 Action (每一行都是一个 Action ),我
我想知道每个变量在每个组中变化了多少次,然后将结果添加到所有组中。 我是这样找到的: mi[,lapply(.SD, function(x) sum(x != shift(x), na.rm=T)
有人可以向我解释一下如何向页眉或页脚添加按钮吗?Datatables 的开发者 Alan 说你必须离开网络服务器才能使用 Table Tools 来使用按钮。但我在独立计算机上离线运行 Datatab
我希望按 id 和按顺序(时间)计算不同的东西。 例如,与: dt = data.table( id=c(1,1,1,2,2,2,3,3,3), hour=c(1,5,5,6,7,8,23,23,23
我正在尝试在 JIRA 小工具中使用数据表,但在我的表准备就绪后,没有可用的分页按钮。我有一个表,我正在以最简单的方式使用数据表:$("#mytableid").dataTable(); 浏览页面元素
我有 responsive 表单中的数据表。 数据表生成 child rows在小型设备上。在这一行中,我有一些输入控件。这会导致两个问题。 第一个问题:**隐藏子行中的值不会进入表单数据。** 第二
我在使用 JQuery DataTable 捕获 keydown 事件时遇到问题。我的目标是允许用户使用箭头键导航表的行。因此,当用户按下箭头键时,我想捕获 keydown 事件并移动表的选定行(这是
是否有任何方法可以以编程方式更改显示的行数,而无需从下拉列表中手动选择? 我已经知道如何更改默认行数。当表首次加载时,我希望它加载所有行,然后“刷新”表以可能仅显示前 10 行。但我想以编程方式刷新表
我有一个数据表,我应该对其进行更改,例如我想更改内容的状态,但该内容位于表的第三页。当我更改它时,数据表会自行刷新到第一页。我想做的是保留选定的页码并在刷新后回调它。这可能吗? 顺便说一句,我正在使用
我是一名优秀的程序员,十分优秀!