Customizing the Message Properties Display

In the Message Properties Editor, you may want to create new default message properties or display only portions of message data rather than the entire message content. The EditProperties.template.jsp file provides an example of how to create a customized Message Properties editor. To activate the file, you need to copy and rename the file.

To customize the Message Properties display:

  1. Locate the EditProperties.template.jsp file in the following directory:

    <installation directory>/Orch-5_1/EAServer/Repository/WebApplication/RTConsole

  2. Rename the file to the following:

    EditProperties.jsp

  3. Use the following example to redefine the properties, using key attributes to perform the parsing or to create Sections and enable users to copy portions of a message content.

     <%

          *

          * properties.getContent() to get message content. Use substring to parse.

          * All fields with attributes will automatically parse message content.

          * Attributes: START - Character position to begin substring. Zero is the first character.

          * Width - Number of characters to substring.  

          * REL - Delimiter. IE. "-"  

          * N - Number of delimiters to skip.  
          * /  
          NtrkMsgProperties properties = Properties.Properties(request, session); 
    %>
    <INPUT TYPE="HIDDEN" NAME="CUSTOM" VALUE="DEFAULT"\>  
    <INPUT TYPE="HIDDEN" NAME="SECTION" VALUE="HEADER">
    <INPUT TYPE="HIDDEN" TYPE="TEXT" N= "0" REL="-"><BR>  
    <INPUT TYPE="HIDDEN" NAME=""SECTION" VALUE="BODY">  
    <TEXTAREA ROWS="4" COLS="20" START="10" WIDTH="10"></TEXTAREA><BR> 
    <SELECT N="2" REL="-">  
    <OPTION>Books</OPTION>  
    <OPTION>Movies</OPTION> 
    <OPTION>Fantasy</OPTION> 
    </SELECT>  

Example

To display the following message content, define fields that are assigned a value from the message data:

ABCDEFGHIJKLMNO-PQRSTUVWXYZ-Books-abc

Text AreaAssigned Value

First

ABCDEFGHIJKLMNO

Second

PQRSTUVWXYZ

Third

Books

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com