DataHub WebView scripting supports the use of S# functions, which can be used to organize your code for efficiency and reuse.

Typically, S# functions should be declared inside one of the page events or as part of a server-side .ss file. Like pages, images and control definitions, .ss files are stored on the DataHub server and transferred to the application during initialization.

See Script Context or Script Cookies for examples that show how to declare and call script functions.

For a comprehensive demonstration of adding script functions to server-side .ss files, please consult Videos.