Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The Contains
keyword can be used on either Texts, Concept Sets or Lists.
It checks if a text, a concept set or a list contains a value (of corresponding type).
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Yes/No value that indicates if the searched item is indeed part of the source being searched.
Text functions are not case-sensitive and ignore diacritics (accents).
The Overlaps
keyword checks 2 sets of concepts to see if at least one concept is available in both sets.
This function is NOT SQL compatible. For more information about SQL compatibility, see our .
Returns a Yes/No value that indicates if at least one concept is part of both sets in the comparison.
The Concept
keyword can be used to get a handle to a concept in a set while the set is being iterated. It can be used in a loop, a repeater or datagrid based on a concept-set as label within the repeater, or in where-filter expressions on a concept-set.
This function is NOT SQL compatible. For more information about SQL compatibility, see our .
Points to a (viariable) concept within a set to use as a handle while iterating through a set of concepts, so a certain action or check can be performed on each concept within the iteration.
The Child Of
keyword checks if a concept is a child of another concept.
WIKI:
This function is NOT SQL compatible. For more information about SQL compatibility, see our .
Returns a Yes/No value that indicates if concept_a
is an child of concept_b
.
The Range Of
keyword returns all allowed concepts of a concept or concept-set based on the field definition (root concept, depth and type restriction).
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a concept set that contains all the allowed concepts for a specified single-select or multi-select-field.
The Parent Of
keyword checks if a concept is the parent of another concept.
WIKI:
This function is NOT SQL compatible. For more information about SQL compatibility, see our .
Returns a Yes/No value that indicates if concept_a
is the parent of concept_b
.
The Descendant Of
keyword checks if a concept is a descendant of another concept.
WIKI:
This function is NOT SQL compatible. For more information about SQL compatibility, see our .
Returns a Yes/No value that indicates if concept_a
is a descendant of concept_b
.
A keyword that retrieves a text value that contains the type of platform the application is running on. The possible values are: "web", "ios" and "android".
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
A web portal running in a browser returns "web". An app running on Android returns "android". An app running on iOS returns "ios".
The ApplicationRoot
keyword is used to retrieve a text value that contains the URL root-path of the portal.
Mainly useful for the preview as that includes the portal-id in the url.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a text value containing the root-path of the application (excludes the hostname).
In Preview, it will yield the portal-id like "/{portal-id}" In Staging/Live runtimes, it will yield an empty string.
Combined with the function HostName() you can create a deeplink to a certain navigation item by its Path Name that will work in Preview (having the portal-id) as well as in Staging and Live
The Contains
Keyword is a special one: it can be used on Texts, on Concept Sets and on Lists.
Check the .
The Ancestor Of
keyword checks if a concept is the ancestor of another concept.
WIKI: https://en.wikipedia.org/wiki/Tree_(data_structure)#Terminology
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Yes/No value that indicates if concept_a
is an ancestor of concept_b
.
The OF
keyword selects values from a list or concept set.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns an array of values.
The IN
keyword checks if a list or concept set contains a specific value.
This function is SQL compatible. For more information about SQL compatibility, see our .
Returns a Yes/No value that indicates if a list
or a concept_set
contains a value.
Keywords to use in logical expressions.
The Contains
Keyword is a special one: it can be used on Texts, on Concept Sets and on Lists.
Check the main page for Contains.
The WHERE
keyword filters a list or concept set.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a filtered list or concept set.
The AND
keyword is used to combine two boolean conditions where both conditions must be true to yield a positive result.
This is the Conjunction within the boolean logical operations.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Yes/No value that indicates if both conditions evaluate to true
.
The ALL
keyword is used to access all entities in nested entities, bypassing the parent-rows.
For example, you have the entities [Shop]
and [Shop.Products]
where [Shop.Products]
is the nested entity.
When you use Count([Shop.Products])
, you’ll get number of products from the current shop only.
If instead you want to count all products from all shops, you can write:
Count(ALL [Shop.Products])
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns all entities of a given nested entity without limiting by active parent row.
The NOT
keyword inverses (negates) a condition.
This is the Negation within the boolean logical operations.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns the inversed condition.
If the condition evaluates to unknown, the inverse (NOT unknown) is also unknown.
The choose
construction can be used to check a multitude of conditions and return the expression that is part of the first condition that evaluates to be true.
The full construction should be created as displayed in the syntax, starting with choose
, ending with a default
expression and the end
keyword, and having 1 or more when ... then ...
expressions in between.
The Choose construct in WEM is comparable to Case or Switch statements in some programming languages. See wikipedia.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns the value after the then
of the first condition that returns true.
If all conditions return false, then the value after default
is returned.
Don't forget the end
keyword.
All values after each then and default keyword must be of the same type to be returned.
Only available in Native Mobile Apps projects
The BatteryLife
keyword can be used in Native Mobile projects to check and display the remaining battery life in percentage in a label. It yields a numeric value between 0 and 100.
This function is SQL compatible. For more information about SQL compatibility, see our .
Returns a Numeric value between 0 and 100, representing the percentage of available battery life of the mobile device.
These keywords are only available in Native Mobile Apps projects
The OR
keyword is used to combine two boolean conditions and will yield true if at least one condition evaluates to true.
This is the Disjunction within the boolean logical operations.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Yes/No value that indicates if at least one condition evaluates to true
.
The If - Then - Else
construct can be used to make conditional parts in an expression.
Constructs can be "nested", just as long as each "nesting" has a block of matching If
, Then
and Else.
See wikipedia for more info on this construct.
The Choose construct can be used as an alternative when multiple conditions need to be checked: in many cases the Choose construct will be easier to read and understand.
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Returns the value after the Then
if the condition in the If
statement returns true.
If the condition returns false, then the value after Else
is returned.
Only available in Native Mobile Apps projects
The BuildVersion
keyword can be used in Native Mobile projects to check and display the Build Version information of the App as set in its app/portal-settings.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Text value, showing the Build Version as it is defined in the App Settings. Example: "1.0.0"
Only available in Native Mobile Apps projects
The DeviceId
keyword can be used in Native Mobile projects to display the unique Device ID of the mobile device.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Text value with the unique identifier of the mobile device.
Only available in Native Mobile Apps projects
The IsDistributionBuild
keyword can be used in Native Mobile projects to check if the current build is the Distribution Build from the Modeler, which can be used for distribution via public App Stores.
The counterpart is IsDevelopmentBuild.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Boolean / YesNo value:
True/Yes
if the app is installed using the Distribution Build.
False/No
if the app is not running the Distribution Build.
Only available in Native Mobile Apps projects
The IsDevelopmentBuild
keyword can be used in Native Mobile projects to check if the current build is the Development Build from the Modeler.
The counterpart is the IsDistributionBuild.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Boolean / YesNo value:
True/Yes
if the app is installed using the Development Build.
False/No
if the app is not running the Development Build.
Only available in Native Mobile Apps projects
The DeviceName
keyword can be used in Native Mobile projects to display the make and model information of the mobile device.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Text value with the make and model of the mobile device.
The Contains
Keyword is a special one: it can be used on Texts, on Concept Sets and on Lists.
Check the main page for Contains.
A keyword to indicate a new line character (i.e. "\n" or ).
When concatenating strings, you can use the newline
keyword to separate the parts into lines. This only works when using standard texts (not rich texts) and display as text (not display as HTML). In the Rich Text / DIsplay HTML situation, you need to use the html-elements <p></p>
, <div></div>
or plainly <br/>
to put texts in different lines.
This function is SQL compatible. For more information about SQL compatibility, see our .
The ends with
keyword checks if a text ends with another text.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Yes/No value
This check is not case-sensitive and ignores diacritics (accents).
The starts with
keyword checks if a text starts with another text.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a Yes/No value
This check is not case-sensitive and ignores diacritics (accents).
The ConnectivityTypes
keyword can be used to check and display the available connection types which are supported by the client device.
This applies to any device (Ethernet typically for laptop/desktop browsers).
If you want a certain feature to be available on mobile devices only when they are on mobile data and not on Wi-Fi, you can use the Syntax example stated below.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns an Array of text value, showing the available connection types.
Possible values are: "wifi", "mobile" and "ethernet".