WOW will automatically include the contents of an Operation with its Usage ID = -778 within the application and add its HTML code to the all WOW generated page for the entire WOW application.
This can be useful in many scenario, especially when setting up a custom script that needs to run on each page of an application. For example, lets say we wish to display the current local time for the user who is logged into our application. We could either repeat the script to do this in each operation somewhere, or have a single HTML Code operation with the script in the code field that has a Usage ID of -778. This will be included in each operation and would allow for the theme to pick up the script on each page that is run.
In this example, our script code would be something like this:
<input type="hidden" name="clientOffset" id="clientOffset" value="0" />
<script type="text/javascript">
var clientDate = new Date();
var clientOffset = clientDate.getTimezoneOffset();
document.getElementById('clientOffset').value = offset;
</script>
The above script adds a hidden field called clientOffset to each page. This field contains the timezone offset in minutes for the current browser/user. We then use this value in custom Java code or our Theme to adjust the user's current local time to display to them in the running application. The same can be done to modify a field to use time offset, the Java code would just be a bit different.
This feature can also be useful for overriding the title or descriptions of all pages in the application. There could be many more uses as well.
You can also use this feature to include custom CSS to alter the appearance of all pages. Refer also to - User Defined Theme - HTML Code Operation
Tags: Automatically include CSS, HTML, JavaScript on all pages. Include operation, include file