Service Portal $sp.getRecordDisplayValues

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> ...

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue