Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Display All records 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-1695026478366.png

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

rahdev_1-1695026517529.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!

 

2 REPLIES 2

Vishal Birajdar
Giga Sage

Hi @rah dev 

 

By default , list field is not editable from list view.

 

below link might help you.

 

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/list-administra...

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

@Vishal Birajdar, i want to create custom widget to show list