Coded conditions are written in X++ code. In the field group, variables which can be used in the code are selected. The code is expected to return a Boolean operator. If the code returns TRUE, a configuration is invalid.
-
Repeat the first six steps described in the Create validation ruletopic.
-
Click the tab.
-
Press CTRL+N to create a new condition.
-
In the field, select .
-
In the field group, press CTRL+N to select the variable you want to use for the condition creation.
-
If the selected variable belongs to the array group, you can specify its index in the group in the field.
-
In the field group, write the X++ code.
-
Click the tab to create a message that will appear if the condition is true. Select the language in which you will write the message and then type the message text.