Product Administration Guide > Customizable Product Web Templates >

About UI Property Values


The value you assign to a UI property name for an item can be text, HTML commands, or JavaScript commands. If the value includes HTML or JavaScript commands, it is important to test them for correctness before entering them in the User Interface Property Designer.

If you do not test the commands and they have errors, this can prevent display of the selection pages. If the value is a text string that does not include commands, you do not need to test it.

You test the commands included in the value of the UI property name by inserting them in an HTML file and checking that they display correctly in a Web browser. Observe the following guidelines for including HTML commands or JavaScript in a UI property name value:

HTML Text Formatting Commands

You can use HTML text formatting commands to enhance the way an item name displays. Here are several examples:

The following HTML tag types can be used as values for UI property names:

Do not use the following tag types in UI property name values:

Images

Use the HTML <img> tag as the UI property value when you want to retrieve and display images. You can shorten the path specification for the src attribute by storing the images in the same directory as other images used by the Web Engine.

The Web Engine stores its images in the following installation subdirectory (Windows path syntax):

PUBLIC\<language>\IMAGES

The <language> variable is the three-letter language identifier for the language selected during installation. For example, if you selected English during the install, the Web Engine image files are located in the PUBLIC\enu\IMAGES subdirectory.

When you specify the src path in the <img> tag, you only need to specify the IMAGES directory and the file name. For example, you want to retrieve red.gif from the IMAGES directory and use it to replace the attribute name Red. In the User Interface Property Designer, you would assign a UI property name to the Red attribute and specify the following value (Windows path syntax):

<img src="IMAGES\red.gif">

Before validating the UI design, you should test this value to make sure it behaves as expected in the browser. Here is an example of an HTML file for testing image retrieval (English language installation, Windows path syntax):

<html>
<head>
<base href="C:\installdir\PUBLIC\enu\">
</head>
<body>
<img src="IMAGES\red.gif">
</body>
</html>

Add HEIGHT and WIDTH attributes to the <IMG> tag to make the image the correct size. Consider making the image somewhat smaller than needed and then increasing its size when you validate the UI design. This prevents the image from causing page layout problems when you first validate it.


 Product Administration Guide 
 Published: 23 June 2003