Include Files
Include files provide a way for developers to group functions so they can be re-used within customizations.
For example, if your site has only one company and you want to customize forms to default the company number and disable input to the company number field, you could perform these steps to accomplish this:
-
Write a JavaScript function (for example, initCompanyField).
-
Save the file in the LAWDIR/persistdata/lawson/portal/scripts folder.
-
Include the file in your custom form (from the script view).
-
Implement a FORM_OnInit event that calls your initCompanyField function.
Any files that you store in the location $LAWDIR/persistdata/lawson/portal/content/scripts are available when you go to the File men and then click Include or when you press the shortcut following keys: Ctrl-Shft-I