Changing the Open Client implementation of JavaScript Objects

How do I change the Open Client implementation of JavaScript Objects?

The Open Client JavaScript objects are in the default application resources folder .../appResources/appObjects. You can move these files to your own application resources folder and Open Client will load from there instead.

For example, you can copy the .../appResources/appObjects folder to .../myApplication/appResources/appObjects. If you move the whole appObjects folder, then you are taking a copy of all the Open Client JavaScript objects, so any PROIV updates to these objects must be copied to your application resources folder before your application can use them.

A more efficient solution is to copy only the files for the JavaScript object that you want to change. To copy an individual JavaScript object, you need to know the files that it requires.

An object requires at least two files and possibly many more. Each object consists of a json file (e.g. status_object.json) and a script file (e.g. PROIV_Status.js). The json file contains a list of all the other files needed by the object and this often includes a CSS file. You must copy all the files specified in the json file and they must have the same folder structure.

The style for a copied JavaScript object is located in the CSS file, and after you have made your copy, you can change the CSS file to your own style.

Note: Some of the more complex JavaScript objects may have many CSS files.

 

Comment on this topic

Topic ID: 800016

 
 
 

Table of Contents

Index

Glossary

-Search-

Back