JavaScript in web, phone, and tablet clients
.NET control add-ins are a powerful tool to customize the user interface of NAV Windows clients, but these controls have a significant limitation - they can be used on role-tailored clients only. NAV clients running on web and mobile devices cannot execute client-side .NET code. As an alternative way to customize UI on devices and web, UI elements can be created in JavaScript. The following recipe demonstrates how to create a custom table control based on popular libraries jQuery and jqWidgets. An advantage of the resulting JavaScript control is that it can be executed on any type of NAV client.
Getting ready
This example uses two third-party libraries that should be downloaded from developers' websites prior to beginning work on the recipe.
Download jQuery library from https://jquery.com/download/.
Download jqWidgets library from http://www.jqwidgets.com/download/.
Note
jqWidjets library is free for personal use, but an appropriate license must be...