JavaScript Overview
JavaScript Overview
In a broad range of application scenarios, Web views can be automated using nothing but standard panels and view commands. When even greater degree of flexibility is required, you can program views using Web Central JavaScript API. This API is complimentary to the View 2.0 Format. You still define data sources and panels in AXVW files, and can use View Commands to automate common tasks. With the JavaScript API you can also:
- Customize presentation and behavior of standard panels
- Process application data before sending it to, or after receiving it from workflow rules
- Implement custom data reports and export data to third-party applications
- Use third-party UI controls or create your own custom controls
To help orient JavaScript developers, this guide begins with a brief description of the Model-View-Controller pattern because it is useful to organize your code along these lines.
Next, a controller template is described along with the variables and functions that are automatically injected into each view's controller from the elements of your AXVW. The advantages of using a controller class should become clear from the architectural foundation, the benefits of auto-wired functionality, and the self-documenting nature of the function naming conventions described.
The techniques and functions described in the following sections for developing a controller class, programmatically manipulating the view and accessing or processing data will provide you with the tools to write more powerful and more maintainable applications.