Go to primary content
Siebel CRM Configuring Siebel Open UI
Siebel Innovation Pack 2016, Rev. A
E52417-01
  Go to Documentation Home
Home
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
    View PDF

Managing Files

This topic describes how to manage files. It includes the following information:

You also use the manifest to manage files. For more information, see "Configuring Manifests".

Organizing Files That You Customize

This topic describes how to organize files that you customize. A predefined file is a type of file that comes configured ready-to-use with Siebel Open UI. A custom file is a predefined file that you modify or a new file that you create. A .png file that you use for your company logo is an example of a custom file. You can customize the following types of files:

  • JavaScript files

  • CSS files

  • Image files, such as .jpg or .png files.

  • SWT (Siebel Web Template files.

  • HTML files.

  • XML files.

Note the following guidelines:

  • You must modify any relative paths that your custom file contains. For more information, see "Updating Relative Paths in Files That You Customize".

  • The folder structures that this topic describes applies to all cached and deployed files.

  • Any third-party libraries that you use must reside in a predefined folder or in a custom folder.


    Note:

    You must not modify any files that reside in the folders that Table 6-2 describes. You must make sure that these folders contain only Oracle content, and that your custom folders contain only custom content. This configuration helps to avoid data loss in these folders. If you modify any predefined file, then Siebel Open UI might fail, and it might not be possible to recover from this failure.

To organize files that you customize 

  • Store all your custom CSS files and image files that reside on the client in one of the following folders:

    INSTALL_DIR\eappweb\PUBLIC\files\custom
    INSTALL_DIR\eappweb\PUBLIC\images\custom
    

    where:

    • INSTALL_DIR is the folder where you installed the client.

  • Store all your custom presentation models and physical renderers in the following folder:

    INSTALL_DIR\eappweb\PUBLIC\scripts\siebel\custom
    

    Oracle stores predefined presentation models and physical renderers in the following folder. You must not modify any file that resides in this folder:

    INSTALL_DIR\eappweb\PUBLIC\scripts\siebel
    

Where Siebel Open UI Stores Predefined Files in Siebel Open UI Clients

Table 6-2 describes where Siebel Open UI stores predefined files in the Siebel Open UI client. You must not modify any of these files. Instead, you can copy the file, and then save this copy to one of your custom folders.

Table 6-2 Where Siebel Open UI Stores Predefined Files in Siebel Open UI Clients

File Type Folders Where Siebel Open UI Stores Predefined Files

JavaScript files

Siebel Open UI stores JavaScript files in the following folders:

INSTALL_DIR\eappweb\PUBLIC\scripts
INSTALL_DIR\eappweb\PUBLIC\scripts\siebel
INSTALL_DIR\eappweb\PUBLIC\scripts\3rdParty

These folders contain JavaScript files only for predefined Siebel Open UI. You must not modify these files, and you must not store any custom files in these folders. The 3rdParty folder might contain CSS files that the third-party JavaScript files require.

CSS files

Siebel Open UI stores CSS files in the following folders:

INSTALL_DIR\eappweb\PUBLIC\files
INSTALL_DIR\eappweb\PUBLIC\files\3rdParty

These folders contain CSS files only for predefined Siebel Open UI. You must not modify these files, and you must not store any custom files in these folders.

Image files

Siebel Open UI stores image files in the following folders:

INSTALL_DIR\eappweb\PUBLIC\images

These folders contain image files only for predefined Siebel Open UI. You must not modify these files, and you must not store any custom files in this folder. To support color schemes, Siebel Open UI converts the images that Oracle provides from GIF files to PNG files.


Updating Relative Paths in Files That You Customize

If you customize a file, and if you save this custom file in a custom folder, then you must modify any relative paths that this file references. For example, if you copy the rules from a predefined .css file into a custom .css file, then you must modify the relative paths that your custom .css file references so that they reference the correct file. For an example of this configuration, see "Customizing the Logo".

To update relative paths in files that you customize 

  1. Create a custom file.

    For more information about custom files, see "Organizing Files That You Customize".

  2. Search your custom file for any relative paths.

    For example, images/ in the following code is an example of a relative path:

    src=images/ebus.gif
    
  3. Modify the relative path so that it can correctly locate the file that it references.

    For example:

    src=INSTALL_DIR/eappweb/eappweb/PUBLIC/images/ebus.gif
    
  4. Do Step 2 and Step 3 for every relative path that your custom file contains.

Specifying Dependencies Between Presentation Models or Physical Renderers and Other Files

A presentation model or physical renderer sometimes includes a module dependency, which is a relationship that occurs when this presentation model or physical renderer depends on another file. The Define method recognizes each of these items as a JavaScript code module, which is an object that the module_name argument identifies as depending on other modules to run correctly. You specify the module_name argument when you use the Define method to identify the JavaScript files that Siebel Open UI must download for a presentation model or physical renderer. For more information, see "Define Method".

Consider the following example that uses the customPR.js file to define the physical renderer. This renderer depends on plug-in X and plug-in Y, and it uses the following directory structure:

Surrounding text describes dependency_structure.png.

In this example, the following logical dependencies exist between the customPR.js file and the x-core.js file, x-helper.js file, and the customPR.js file:

Surrounding text describes define_method_dependencies.png.

Siebel Open UI then uses the following logic at run-time for this example:

  1. The user navigates to a view that includes an applet that uses the customPR physical renderer.

  2. The Siebel Server server sends a reply to the client that includes information about the property set and the physical layout.

  3. The view processes the information that the Siebel Server sends in Step 2, and then determines that it must use siebel/custom/customPR.js to render the applet.

  4. The RequireJS script loader uses the customPR.js file name to identify siebel/custom/customPR as the module name, and then sends a request to the Siebel Server for this module.

  5. If Siebel Open UI already loaded this module, then it returns the module object to the client and proceeds to Step 7.

  6. If Siebel Open UI has not already loaded this module, then it does the following work:

    1. Sends a request to the web server for the siebel/custom/customPR.js file.

    2. If dependencies exist, then Siebel Open UI sends a request for these dependent modules, and then runs the modules in the browser.

    3. Siebel Open UI runs the script for the siebel/custom/customPR.js file in the browser.

  7. Siebel Open UI uses the module object to create a new instance of the presentation model and the physical renderer.

To help manage your customizations, it is strongly recommended that you use a module name that is similar to the relative location of the file name. You use the manifest administration screens to specify the manifest for these dependencies.

To specify dependencies between presentation models or physical renderers and other files 

  • Use the list_of_dependencies argument when you use the Define method in your presentation model or physical renderer.

    For an example that uses the list_of_dependencies argument, see "Setting Up the Physical Renderer". For more information, see "Define Method".

  • If file dependencies require that you configure Siebel Open UI to download files in a specific order, then do "Configuring Manifests".