Parameter configuration examples

Example: MobStringUI

In this example, all characters are converted to uppercase upon input and the maximum number of characters allowed is 5:

uppercase='true' maxLength='5'

Example: MobNumberUI

In this example, the maximum number of digits to the left of the decimal sign is 3, the number of digits to the right of the decimal sign is 2, and the value of the field is not reverted to its original value on an invalid input:

scale='3' precision='2' revertValueOnError='false'
 

On invalid input, the value is shown in red, indicating an error.

In this example, the maximum number of digits to the left of the decimal sign is 6, the number of digits to the right of the decimal sign is 2, and the locale-specific format is used:

scale='6' precision='2' renderLocalized='true'
 

The user's locale determines the thousand separator and decimal separator that are displayed and the position of the minus sign (left or right).

Example: MobCheckboxUI

In this example, the value of the check box field is selected by default:

checked='true'

Example: MobComboBoxUI

In this example, the combo box contains the values Shift Start Time, Employee ID, Employee Name, Employee Hire Date, Employee Seniority Date, and Total Scheduled Hours. These labels correspond to the internal values 0, 1, 2, 3, 4, and 5. The user can select a blank value (null), a single value, or multiple values (multi-select).

valueList='0,1,2,3,4,5' 
labelList='Shift Start Time,Employee ID,Employee Name,Employee Hire Date,Employee Seniority Date,Total Scheduled Hours'
nullable='true' 
multiSelect='true'

Example: MobDateUI

In this example, the format of the date is SHORT_MONTH_DATE (for example, Oct 24, 2019) and the first day of week in the calendar is Monday:

format='SHORT_MONTH_DATE' firstDayOfWeek='1'

Example: MobTimeEditUI

In this example, a 24-hour time format is used (for example, 16:30):

timeStandard='24'
 

In this example, an interval is used in hour:minute format. For example, 09:30 represents 9 hours and 30 minutes.

type='interval'
 

In this example, an interval is used in decimal format. For example, 9.5 represents 9 hours and 30 minutes.

type='interval' decimalMinutes='true' decimalPlaces='1'

Example: MobDBLookupUI

In this example, a registered query named SEC_EMPLOYEE_LOOKUP is used to populate the lookup with employee names:

sourceLabelField='EMP_NAME' sourceKeyField='EMP_NAME' 
source='SEC_EMPLOYEE_LOOKUP' sourceType='REGISTERED'
 

In this example, a SQL statement is used to select a single column. In this case, the lookup is populated with hour type IDs.

sourceType='SQL'' source='select HTYPE_ID from HOUR_TYPE'
 

In this example, a SQL statement is used to select two columns. In this case, the label and display default to the second column, so the lookup is populated with hour type names. The source key defaults to the first column, so the hour type ID corresponding to the selected hour type name is saved internally.

sourceType='SQL' source='select HTYPE_ID, HTYPE_NAME from HOUR_TYPE'
 

In this example, the user can select multiple hour type names from the lookup:

sourceType='SQL' source='select HTYPE_ID, HTYPE_NAME from HOUR_TYPE' 
multiChoice='true'
 

In this example, a SQL statement is used to select three columns, which are all displayed in the lookup. In this case, the hour type name is displayed, followed by the description, and then the ID. The title of the lookup is set to a locale key. The lookup is not nullable, so the user cannot clear the value. To improve performance, a simpler SQL query is used for resolving values displayed in the field instead of the source query.

sourceType='SQL' source='select HTYPE_DESC, HTYPE_ID, HTYPE_NAME from HOUR_TYPE' title='LOOKUP_HOUR_TYPE' nullable='false' 
sourceKeyField='HTYPE_ID' sourceLabelField='HTYPE_NAME' 
sourceDisplayFields='HTYPE_NAME|HTYPE_DESC|HTYPE_ID' pageSize='6' 
resolveType='SQL' resolve='select HTYPE_ID, HTYPE_NAME from HOUR_TYPE'
 

In this example, a SQL statement uses a substitute value to return the currently logged-in employee:

sourceLabelField='EMP_NAME' sourceKeyField='EMP_NAME' 
source='SELECT EMP_ID, EMP_NAME, EMP_FULLNAME FROM EMPLOYEE WHERE EMP_ID in (?)' sourceType='SQL' sourceParams='INTLIST==#control.EMP_ID#'