Configuring Siebel Open UI > Customizing Siebel Open UI > Managing Files >

Specifying the Order That Siebel Open UI Uses to Download Files


In some situations, you must configure Siebel Open UI to use a specific order when it downloads and runs JavaScript files in the client.

To specify the order that Siebel Open UI uses to download files

  • Use the following code:

    define("siebel/custom/module_name", ["order!dependent_module1"," order!dependent_module2","order!dependent_modulen], function(){
      . . .
      . . .
      . . .
    return "name_space.module_name";
    });

    where:

    • order! is a prefix that specifies to download and run dependent modules in the order that you specify them. You add this prefix immediately before the module name. Siebel Open UI downloads and runs these modules in the order that you specify them.
    • dependent_module specifies the file name that Siebel Open UI must load and the relative path where this file resides.

For example, assume the siebel/phyrenderer file depends on the following file:

3rdParty/X/x-core.js

In this example, Siebel Open UI must download and run the 3rdParty/X/x-core.js file before it downloads and runs the siebel/phyrenderer file. You can use the following code to specify this order:

define("siebel/custom/name-module", ["order!3rdParty/X/x-core","order!siebel/phyrenderer"], function(){
  . . .
  . . .
  . . .
return "name_space.module_name";
});

It is recommended that you use the order! prefix only if necessary.For information about file dependencies, see Specifying Dependencies Between Presentation Models or Physical Renderers and Other Files.

Configuring Siebel Open UI Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.