Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel Analytics Web Administration Guide > Customizing the Siebel Analytics Web User Interface >
Customizing the Siebel Analytics Web User Interface Using XML Message Files
This section explains how to customize text elements in message files to manage the default appearance and behavior of the Siebel Analytics Web user interface using XML strings.
NOTE: The intent of this section is to allow organizations that have XML expertise to perform additional customization. If you do not have this expertise, contact Siebel Systems' Services organization, or enlist the assistance of a third party, to help you with customization.
This section contains the following topics:
- About the Siebel Analytics Web User Interface XML Message Files
- How Siebel Analytics Web XML Message Files Are Structured
- Customizing Siebel Analytics Web XML Messages
- Resolution of Siebel Analytics Web XML Message Name Tags
- Sample Siebel Analytics Web XML Template
- Sample Siebel Analytics Web CustomMessages.xml File
About the Siebel Analytics Web User Interface XML Message Files
You can customize many of the text elements that appear in Siebel Answers, Siebel Delivers, and on dashboard pages. Examples of text elements include the content of text strings, the text for prompts such as the names of links and buttons, and the text of error and informational messages that are displayed to users as the result of an action.
These text elements are contained in external message files that are distributed with Siebel Analytics Web. The message files are in XML format. Language-specific messages are located in the folder Web\App\Res\l_xx\Messages in the Siebel Analytics Web installation directory, where xx is the language identifier of the selected locale (for example, for english-usa, the identifier is en). Language-independent messages are located in the folder Web\App\Res\Messages in the Siebel Analytics Web installation directory.
You should not edit the message files directly because any changes would not be retained when you install newer versions or service releases. For more information, see Customizing Siebel Analytics Web XML Messages.
How Siebel Analytics Web XML Message Files Are Structured
The name of a particular message file indicates the kind of content that it holds. For example, messages in the file LogonMessages.xml hold message content related to the act of logging on and off the system. Within each XML file, the WebMessage name= tags define the names of the messages. These tags are called message identifiers.
A particular message may also reference the content of another message by using a
MessageRef tag. For example, the following message in the file LogonMessages.xml references the value of another message:
<WebMessage name="kmsgAuthenticateNotLoggedOnToLogOnClickHere">
You are not currently logged in to the
<MessageRef name="kmsgProductServer" />
The entry
<MessageRef name="kmsgProductServer" />
in the previous message indicates that the name of the server is taken from the value of the kmsgProductServer message identifier. This message is located in the file ProductMessages.xml, and its value is Siebel Analytic Server:<WebMessage name="kmsgProductServer" CRC="nnnnnnnnnnnnnnnnnnnn">
<TEXT>Siebel Analytic Server</TEXT>
Some messages, such as those that contain copyright information and product names, are protected and cannot be changed. If you look in the file ProductMessages.xml, you see text above the WebMessage tags that indicate that the associated names cannot be changed.
Customizing Siebel Analytics Web XML Messages
This section explains how to change the content of unprotected messages and provides several examples. The intent is to show you how to alter the text of messages, and not to teach you XML.
- For the messages you want to customize, create like-named message identifiers and customize their text.
- Create a custom messages folder named CustomMessages.
NOTE: Organizations that have Siebel Analytics applications may already have a file present in this folder. This file enables Analytics support for Siebel Analytics applications, and should not be modified, moved, or deleted.
- Place the messages in one or more XML files in the CustomMessages folder, and then place the CustomMessages folder in this location:
\SiebelAnalyticsData\Web\Res\l_xx
where SiebelAnalyticsData is the name of the data folder created during the installation process, and xx is the language identifier of the selected locale (for example, for english-usa, the identifier is en).
If you are not concerned with multiple languages, place the folder in the l_en folder. Messages default to l_en if a language-specific version is not found. You need to create the l_xx folder in the analyticsRes folder.
- Restart Siebel Analytics Server.
You can create as many XML files in the CustomMessages folder as you like, or you can create just one XML file that holds customized messages, for example, CustomMessages.xml.
NOTE: If you plan to support multiple languages, it is recommended that you place control messages, which are messages that are not translated, into one file named CustomControlMessages.xml. Place messages that are translated into another file named, for example, CustomUIMessages.xml. This allows you to place localized versions of the CustomUIMessages.xml file in each language folder as appropriate, such as \SiebelAnalyticsData\Web\analyticsRes\l_de\CustomMessages, \SiebelAnalyticsData\Web\analyticsRes\l_fr\CustomMessages, and so on.
Resolution of Siebel Analytics Web XML Message Name Tags
During initialization, the Siebel Analytics Web server replaces the WebMessage name default text with text from equivalently named tags in any customized XML file, based on the following precedence order, from highest to lowest:
- XML in \SiebelAnalyticsData\Web\Res\l_xx\CustomMessages folder (language- specific folders).
- XML in \SiebelAnalyticsData\Web\Res\l_en\CustomMessages folder (for language-specific user logons if WebMessage name tags reside here, but are not in language-specific files).
- XML in \SiebelAnalyticsData\Web\Res\CustomMessages folder.
- XML in \SiebelAnalytics\Web\App\Res\l_xx\Messages folder.
- XML in \SiebelAnalytics\Web\App\Res\Messages folder.
As an example, when Siebel Analytics Web starts up, it first reads the messages in the folder Web\App\Res\l_xx\Messages in the installation directory, and then reads the messages in the folder \SiebelAnalyticsData\Web\Res\l_xx\CustomMessages. It replaces the default text for those messages with the customized text. If you attempt to alter the text of a protected message, a message is displayed in its place indicating that you attempted this.
Sample Siebel Analytics Web XML Template
The following is a sample template for a CustomMessages.xml file in the folder \SiebelAnalyticsData\Web\analyticsRes\l_xx\CustomMessages. An example CustomMessages.xml file follows the template.
Every message begins with a <WebMessage name=> tag and ends with a
</WebMessage> tag. The message text that you can customize is contained between <TEXT> tags or <HTML> tags. To suppress the display, delete the text between the tags.<?xml version="1.0" encoding="utf-8"?>
<WebMessageTable system="Custom Messages">
<!-- The name of a message must match the name of the message you are overriding. -->
<WebMessage name="kmsgExampleOverrideMessage">
<!-- A message can have TEXT and/or HTML versions of it. It is not necessary to have both. (TEXT will be automatically converted to HTML when necessary). -->
<TEXT>Example message.</TEXT> <!-- Format used in a text only output -->
<HTML><b>Example message with bold HTML tags.</b></HTML> <!-- Format used in an HTML output -->
- Replicate the sample template in a text editor.
- Name the file CustomMessages.xml (or any name you choose).
- Place the file into the CustomMessages folder you have created in the appropriate \SiebelAnalyticsData\Web\analyticsRes\l_xx folder.
Sample Siebel Analytics Web CustomMessages.xml File
The following example shows four customized messages placed in the CustomMessages.xml file.
<?xml version="1.0" encoding="utf-8"?>
<WebMessageTable system="Custom Messages">
<WebMessage name="kmsgAuthenticateRemembermyIDandpassword">
<TEXT>Remember my signon name and password.</TEXT>
<WebMessage name="kkmsgPrivilegeDisplayerAccountUnknown">
<TEXT>Unknown Account (<Param insert="1"/>). Call the Help Desk at extension 9999 to set up a new account.</TEXT>
<WebMessage name="kmsgWelcomeFrameCreateNewRequest">
<HTML>Create a <b>new request</b> by clicking on a Subject Area below. After creating the request, click on the <b>Done</b> button at the bottom of the page.</HTML>
<WebMessage name="kmsgUIAdmin">
- The message identifier of the first message being customized is "kmsgAuthenticateRemembermyIDandpassword". The default text for this message is located in the file LogonMessages.xml in the folder Web\App\Res\l_xx\Messages in the installation directory.
- The message identifier of the second message being customized is "kmsgPrivilegeDisplayerAccountUnknown". The default text for this message is located in the file ViewMessages.xml in the folder Web\App\Res\l_xx\Messages in the installation directory. This message contains a variable,
( <Param insert="1"/> )
.NOTE: If you are customizing a message that contains a variable, do not alter the variable. In the UNIX environment, be careful to preserve the case of the message name being customized.
- The message identifier for the third message being customized is "kmsgWelcomeFrameCreateNewRequest". The default text for this message is located in the file SearchSysMessages.xml in the folder Web\App\Res\l_xx\Messages in the installation directory. This message is in HTML format and uses an HTML tag (
<b>
) to display text in bold letters.- The message identifier for the fourth message being customized is "kmsgUIADMIN". The default text for this message is located in the file UIMessages.xml in the folder Web\App\Res\l_xx\Messages in the installation directory. This message is in HTML format. This message identifier displays the Admin link at the top of each Siebel Answers, Siebel Delivers, or dashboard page. Deleting the Admin text between the <HTML> and </HTML> tags suppresses the display of the link.
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel Analytics Web Administration Guide Published: 11 March 2004 |