UI Elements
Along with SAP MII objects such as query templates, display templates, and so on, you can also create a user interactive page by adding UI elements such as text areas, buttons, images, text input fields, radio buttons, check boxes, and dropdown boxes. You can drag and drop the UI element to the selected cell of the layout. A reference grid is created in the background of the layout and the first UI element is always placed at the top left cell of the grid. The consecutive elements are placed at cursor position of the grid, where you choose to place the UI element. At cursor’s position, the cell in the background is highlighted with a green border. When you place new content into a cell with existing content, a red border appears and a confirmation dialog box to replace the existing content appears.
When you choose the selected UI element, the Properties
tab displaying all the properties associated with that UI element appears on the right pane. You can configure the properties of the UI elements like ID, text value, visibility, event handlers, and so on. On adding an Eventhandler
, a Javascript method is created in the custom code area in Source Code
tab. You can write your implementation in the generated method and the method is executed on that selected event. You can preview the UI elements along with the configurations in the Preview
tab. Also, source code is generated in the Source Code
tab for every UI element dropped into the cell.
You can drag and drop a UI element group to another cell within the layout.
Additionally, you can import an image to any cell using Image
from UI Controls
tab. You can either select an image from your local system or browse for the existing images that are available in Resource/Files
. If the selected image is from your local system, then the image is saved to My Content
folder of Resource/Files
pane.
Note
The dashboard cell height must be 40px when you design a form using UI elements.
You must be assigned the following UME actions:
XMII_SSCE
XMII_SSCE_UIElements
For more details on users and roles, see User Management.
The UI controls and their relevant properties are listed below:
UI Controls | Properties | Description |
|---|---|---|
|
| Unique UI element name |
| Displays the entered text | |
| Specifies the size of the text | |
| Sets the visibility of | |
| If set to | |
|
| Unique UI element name |
| Placeholder for the | |
| Specifies the size of the text | |
| Enter any value or browse for the value from the value help. On selecting the value help, the input parameters name along with the values are displayed. You can select any paramter, and the parameter value is assigned to the UI element.For more information , see
Only the parameters with context type End of the note. | |
| Specifies the type (Numeric or Date) of the | |
| Provides quick information about the control | |
| Enables or disables the control at runtime. You can set to either true or false. | |
| Sets the visibility of | |
|
| |
| Event called while typing in the | |
| Event called when there is a change in the text field or when you choose | |
| Event called while | |
|
| Unique UI element name |
| Displays the entered text | |
| Specifies the size of the text | |
| Provides quick information about the control | |
| Enables or disables the control at runtime. You can set to either true or false. | |
| Sets the visibility of | |
| Event called when you click on the button | |
| Used when you trigger an iCommand created in the | |
| Used when you trigger an XacuteQuery created in the | |
|
| Unique UI element name |
| Enables or disables the control at runtime. You can set it to either true or false. | |
| Sets the visibility of | |
| Specifies the size of the text | |
| Defines the number of items to be displayed at once in the list | |
| Used when you display data in the list at design time. You must enter the data in key-value pairs. | |
| Used when you display data dynamically using query template. The data provider uses columns to set the key-value pairs. You can configure the query template by choosing | |
| Allows you to link with two input text fields.
You define two input text fields with type End of the example. | |
| Event called when there is a change in text in the field | |
| Event called when the control is initialized | |
|
| Represents the unique UI element name |
| Enables or disables the control at runtime. You can set it to either true or false. | |
| Sets the visibility of | |
| Specifies the size of the text | |
| Used when you have to display data in the list at design time. You must enter the data in key-value pairs. | |
| Used when you display data dynamically using a query template. The data provider uses columns to set the key-value pairs. | |
Image | Allows you to select an image from the server or client. The default | |
TextArea |
| Unique text area name |
| Displays the content within the boxed area. You can update the placeholder content. | |
| Specifies the size of the text | |
| Enter any value or browse for the parameter with default text from the value help. For more information , see | |
| Provides quick information about the control | |
| Enables or disables the control at runtime. You can set to either true or false. | |
| Sets the visibility of | |
| Event called when you click on the button | |
| Event called when there is a change in the text field or when you choose | |
Radio Button |
| Unique name of the radio button |
| Displays the radio button label text | |
| Name of the group. Group indicates a bundle of radio buttons that belongs to same group. In | |
| Provides quick information about the control | |
| Enables or disables the control at runtime. You can set to either true or false. | |
| Sets the visibility of | |
| Event triggered when you select the checkbox | |
Check Box |
| Unique name of the check box |
| Displays the check box label text | |
| Provides quick information about the control | |
| Enables or disables the control at runtime. You can set to either true or false. | |
| Sets the visibility of | |
| Event triggered when you select or de-select the check box |
Select UI Elements
.
From the UI Controls
tab, drag and drop any UI element to any cell of the selected layout.
The first UI element will be placed at the top left cell of the reference grid.
Note
When you move an image to the cell, the dialog box Select File
displays options to select the image from the available projects or from your local machine.
The Server
option allows you to select a image from the available projects whereas the Client
option allows you to browse for an image in your local machine.
Click the UI element to configure its properties.
The Properties
dialog box appears on the right side of the screen.
Enter the relevant information.
To delete a UI element, select the element and choose either Delete
icon on top of the cell or Delete
key on the keyboard.
Select the UI element on the dashboard.
From the Properties
tab, choose the value help from the Default Value
field.
The Input Parameters
table with parameters and default values appears. To enter the default value for the parameters, do the following:
Navigate to Preferences
tab.
Choose Add
.
Choose None
in the Context
column.
Enter a value in the Default Value
column.
The dashboard displays the default value of the parameters.