Expression Editor
It is possible to use dynamic field expressions in place of field name specifications in a form set. You can use these expressions (and Functions) to perform conditional calculations or create conditional labels and filters when processing or reporting on data.
To open the Expression Editor, right click and select Edit Expression from the right-click menu.
|
Click the Clear button to clear the expression you have entered. |
|
Click the Forms button to save the expression, or load a previously saved expression. |
|
Click the Preview button to display the expression with any macro substitutions applied. A validation check will be performed automatically before the preview and the Expression Editor will be locked for editing until the button is toggled off. |
|
Click the Validate button to check the syntax of the expression you have entered. |
For examples of the expressions you can write in the Expression Editor and elsewhere, refer to: Field Expressions.
Functions, Operators, Conditional Expressions, Constants, Field variables, Data Source variables and Report variables can be included in an expression.
When a variable, function, operator or conditional is selected in the Expression Editor, any available Help is displayed in the panel at the bottom of the dialog:
Note: In some cases, expressions used will require an output field name attribute. A warning prompt will be displayed in this instance. For information on supplying output field name attributes in expressions, see Output Field Name Attributes.
Assistant
The Expression Assistant, opened from the button at the right of the Expression Editor is an AI service provided by the Micromine Nexus platform which can generate expressions based on language input.
Note: The Expression Assistant is only available with a Cloud license and a Micromine ID with an internet connection.
You can Ask a question in the field provided by describing the expression you would like in plain language, and then click Send.
The Assistant will reply with an expression:
If you are ready to use the expression generated by the Assistant, you can click Apply to editor to paste it directly into the open Expression Editor.
Using the Attach icon in the Ask a question field you can attach an image, such as a calculation diagram, alongside a short description to help generate an expression. You can also paste (Ctrl +V) an image from the clipboard. You can paste or attach up to three images, in .png or .jpeg format.
If you launch the Assistant from the Expression Editor with an expression already created, it will automatically launch in analyse and repair mode - there is no need to prompt. An explanation of any errors will be provided where available:
If there is no error in the existing expression and you prompt the Assistant, two prompts will be suggested to improve or optimise the expression.
If you want to start a New session, click the button at the top right.
You can provide feedback to the Assistant using the like / dislike icons under the text fields. If you click the Retry button, the same question will be asked again. You can try this after making changes to the expression in the form.
As outlined in the Assistant window, the expression assistant is AI and can make mistakes. All responses should be double-checked before use.
AI-powered features can be enabled and disabled by licence Administrators on a licence-by-licence basis. AI services are tied to a subscription licence and are switched on or off for everyone on that licence from the licence details. For information on how to configure access to AI features, see Managing AI Functionality.
You can download a copy of the Micromine Artificial Intelligence Transparency Statement from the link.