SERVER SCRIPT:
data.list = []
var gr=new GlideRecord('incident');
..
while (gr.next()){
var incident={}
$sp.getRecordDisplayValues (incident, gr, 'name,state, ... ');
data.list.push (incident);
}
HTML:
<th ng-model="c.searchTerm">
<tr ng-repeat="inc in c.data.list | filter: c.searchTerm">
<td>{{inc.number}}
<td>{{inc.state}}
<td> ...
data.list = []
var gr=new GlideRecord('incident');
..
while (gr.next()){
var incident={}
$sp.getRecordDisplayValues (incident, gr, 'name,state, ... ');
data.list.push (incident);
}
HTML:
<th ng-model="c.searchTerm">
<tr ng-repeat="inc in c.data.list | filter: c.searchTerm">
<td>{{inc.number}}
<td>{{inc.state}}
<td> ...
Comments
Post a Comment