Service Portal Data Table widget - Double-click to edit columns

James D_ Downer
Kilo Explorer

I've cloned the service portal "Data Table with URL filter" widget and am trying to figure out how to edit it so that the end user can double-click a column to edit it instead of it redirecting him/her to the form view for the selected row.

My question is: How do I capture a double-click on the data-table in the Client Controller script, and how do I get both the row and column clicked?

1 ACCEPTED SOLUTION

Jon Barnes
Kilo Sage

Check out this post. I provided a widget that will do what you are asking (but it uses the OOB sp-editable-field directive, so it currently triggers on a single click).

 

https://community.servicenow.com/community?id=community_question&sys_id=a6b2ca9bdb98db445322f4621f961989

 

I am attaching here a Kingston version and an Istanbul version. feel free to use these or tweak them as needed.

View solution in original post

10 REPLIES 10

Were you be able to achieve this? I too have similar requirement.

Thanks

Sri.