Record image control

You can use the record image control to associate an image with a record, including an expandable thumbnail image. You can then add this image to an application from within the application user interface. A user can click on a thumbnail image to view its full size and can drag the mouse over the image to see a text description. You can place a record image control in any container control.

When you add a record image to an application, you are inserting a placeholder but not the actual image. You can add only one record image to an application but you can use the same image multiple times within the application. For example, you can show an image in more than one application tab.

After creating a record image control, open the application and click the Add Modify Image option from the Select Action menu . If necessary, use an autodb script to add the Add Modify Image option to the Select Action menu item. You can add images that have a .jpg or .gif extension.

You can configure the record image control to view images associated with other records that are not part of the current application. Use View Image in the Details menu to open an image in a popup window. To add View Image to a Details menu, edit the menu.xml file. When you are finished, use Import Application Definition in the Application Designer to import the menu.xml file.

Properties

Attribute name Description

Control ID

Each control in a presentation is assigned a unique Control ID that is read-only.

Label

You can specify a text value in this field to override the Default Label for the control. This label is specific to the application and is not stored in the MAXATTRIBUTE or APPFIELDDEFAULTS tables.

Data Source ID

Specify a data source ID if you want this control to use a different data source than the parent. If the control is creating a data source and the Data Source ID property is not set, the ID defaults to the ID of the control. If the data source is blank, the control inherits the data source from the parent. If no parent controls have a data source specified or if the parent is the application, MAINRECORD is the data source because it is the primary data source for the application.

CSS Class Name

You can specify the name of a CSS class to use if you want to change the layout or appearance of the record image. You can search for CSS class names in the <root>\applications\maximo\maximouiweb\webmodule\webclient directory.

Height

Enter a numeric value in this field that will increase or decrease the height of the image. If you change the default dimensions, the image can become distorted.

Width

Enter a numeric value in this field that will increase or decrease the width of the image. If you change the default dimensions, the image can become distorted.

Is Thumbnail

Identifies whether or not the image is an expandable thumbnail image.

ALT Text on Image

You can specify a text description of the image that is visible when the user drags a mouse over the image. An ALT text description provides a text substitute for the image to users with a visual impairment that use screen readers.

Signature Option

You can specify a signature option that can restrict access to this control or change the properties of this control based on a condition that you specify. To create a signature option, click Add/Modify Signature Options in the Select Action menu. To specify a condition, click the Configure Conditional Properties button.

Sig Option Data Source ID

An MBO must be used to evaluate whether or not a user has access to a signature option. Specify the value of the data source that performs this evaluation if it is different to the data source that is configured for this control.



Feedback