IBMDO YOU?Hi, I'm MBO!

Settings

Make the site feel at home on your screen.

Theme

Loading your theme preference.

Keyboard shortcuts

Open search from anywhere, then move through the results without leaving the keyboard.

Open settings
Ctrl,or⌘,
Open search
CtrlKor⌘K
Select a search result
↑↓
Open the selected result
Enter
Close an open dialog
Esc

I Build Maximo

Add field and value parameters to Maximo table-domain errors

Use {0} and {1} in a Maximo message so a table-domain validation error identifies the field and rejected value.

I Beat Maximo — confirmed solution

A table domain can show a much more useful validation error than “the value is invalid.” Maximo supplies the field and rejected value as parameters, so one reusable message can tell a user exactly what failed.

For table-domain validation messages:

Parameter Supplied value
{0} The field receiving the value
{1} The value that was rejected

For example, entering VOYTEST in a field named DOMAINERROR can produce:

Value VOYTEST is not valid for the field DOMAINERROR

A Maximo validation dialog identifying VOYTEST as invalid for DOMAINERROR

Create the message

Work in a nonproduction environment first. Open Database Configuration, then open the Messages dialog from the application actions.

Create a message with a meaningful group and key. This example uses:

Setting Example
Message Group domaintest
Message Key domaintest
Display Method MSGBOX
Message ID Prefix BMXZZ
Message ID Suffix An unused custom suffix
Value Value {1} is not valid for the field {0}

The Maximo Messages dialog containing a value and field parameterized message

Choose a group, key and message ID that follow your site's naming standard. Do not reuse an existing message ID or edit an IBM-owned message for a custom domain.

Assign the message to the table domain

Open the table domain in the Domains application. On the table-domain row that performs the validation, set:

  • Error Message Group to the message group you created.
  • Error Message Key to its message key.

Save the domain. The error group and key tell Maximo which message to raise when the validation WHERE clause cannot find a matching record.

The parameter order belongs to the table-domain validation mechanism. Writing the placeholders in a different order changes only how the supplied field and value appear in the sentence. For example:

The value {1} is not valid for {0}. Select a value from the lookup.

Test every entry path

Open an application containing an attribute that uses the domain, then test:

  1. A valid value selected from the lookup.
  2. A valid value typed manually.
  3. An invalid value typed manually.
  4. A mixed-case or whitespace variation if the attribute permits it.
  5. An integration or import path that validates the same attribute.

The invalid test should show the rejected value in {1} and the field name in {0}. Confirm the message also makes sense in logs and integration responses, where a user might not have the application screen for context.

Keep the message useful without echoing secrets or sensitive submitted data. {1} contains the rejected input, so it is unsuitable for password fields, tokens or other confidential values.

References

Find the fix

Search articles

Esc

Search titles, technical terms or error codes.