How to add Jquery Datatable into Servicenow to create UI page

randeepnath
Mega Contributor

Please help me to include Jquery Datatable - //cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js -

How we can create a UI page using the above Jquery script -

Please give me the exact steps to include this in a scoped application.

Thanks in advance !!

7 REPLIES 7

Kalaiarasan Pus
Giga Sage

Create a new UI script and copy-paste the Jquery library to that.


Include the UI script in your UI page using the below tag



<script></script>



Where jquery.dataTables.forgeca is the name of the new UI script created.


randeepnath
Mega Contributor

Should I create UI script in Global scope?


Yes if it used globally.


randeepnath
Mega Contributor

When I am trying to add this inside an application scope - I am getting some errors -


If I added this as a global - while creating an app - servicenow app - can i use this script in servicenow app.. ?


Actually I have one application say - test app - and going to create a UI page with a Jquery data table library via global scope - Will that be an issue while creating a servicenow app ?