molgenis
9.2
9.2
  • Introduction
    • What is MOLGENIS
    • Try out MOLGENIS
    • Quick start (docker)
  • Find, view, query
    • Using the navigator
    • Using the search-all
    • Using the dataexplorer
    • Setup authentication
  • Data management
    • EMX format
    • Using expressions in EMX
    • Quickly import data
    • Advanced data import
    • Modify metadata
    • Questionnaires
    • Downloading data
    • MagmaScript expressions (mapping service)
    • Pseudonymisation
  • Access control
    • Users
    • Groups and roles
    • Finegrained permissions
    • Set permissions on row level (RLS)
  • Data processing
    • Scripts
    • R
    • Schedule jobs
  • Configuration
    • Settings
    • Customize MOLGENIS
    • Localization
    • Apps in MOLGENIS
    • Creating themes
    • Migration
    • Auditing
  • Interoperability
    • Swagger specification
    • Data API
    • Metadata API
    • REST api v1
    • REST api v2
    • Files api
    • Import api
    • Permission api
    • Python-api client
    • R-api client
    • Beacon api
    • FAIR api
    • RSQL operators
  • For developers
    • Developing MOLGENIS
    • Developing frontend in MOLGENIS
    • Developing Apps in MOLGENIS
    • Using an IDE (Intellij)
    • Technologies
    • Dynamic decorators
    • Running the integration tests
    • Jobs
    • Security
  • Deploy MOLGENIS
    • Using RPM
    • Technical Migration
Powered by GitBook
On this page
  • Introduction
  • Examples
  • Reference
  1. Data management

Using expressions in EMX

PreviousEMX formatNextQuickly import data

Last updated 3 years ago

Introduction

For some entity type attributes an expression can be set that determines whether or not a condition is true based on the attribute values to determine whether values are valid, visible or required.

Examples

The following expression returns true when the value of attribute 'myAttributeName' of an entity only contains alphanumberic characters:

regex('^[a-zA-Z0-9]+$',{myStringAttributeName})

In this example:

  • {myStringAttributeName} looks up the value of the myStringAttributeName variable

  • regex is a function

You can combine expressions to perform more complex logic:

{myIntAttributeName} > 3 and {myIntAttributeName} < 6

Reference

See for a complete description of the syntax.

molgenis/molgenis-expressions