Display list of table

rah dev
Tera Contributor

Hi Community, 

I am new to ServiceNow community.
I have a requirement to show list of record using custom widget. 

 

I want to edit directly from output of widget by double click on that field.  I want to show all list of incident

rahdev_0-1695063124400.png

 

and apply double click function so that if we double click on specific field, then it should be editable like this:

rahdev_1-1695063124314.png

 

I am using this code
HTML:

<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Table List</h3>
</div>
<table class="table">
<thead>
<tr>
<th>Number</th>
<th>Short Description</th>
<th>State</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="table in data.tables" ng-dblclick="c.editTable(table.sys_id)">
<td>{{::table.number}}</td>
<td>{{::table.short_description}}</td>
<td>{{::table.state}}</td>
</tr>
</tbody>
</table>
</div>

 

 

I am stuck on other client and server scripts.
Thanks in Advance!

1 REPLY 1

Bert_c1
Kilo Patron

Hi rah dev,

 

I guess you are not happy with editing fields from the list, but want a new UI component to do that. Maybe someone here has done that. (I can edit certain fields on my Dashboard widget that contains a list report.)