Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The Hostname()
function returns the domain name of the active portal of your published WEM project. For more information about the domain name visit https://en.wikipedia.org/wiki/Domain_name.
This function can be used to create links to (specific pages of) your application. For example a link in a reset password or create account e-mail (see syntax for an example). By using the hostname function you ensure that the generated link always points to the right portal in the right environment.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a text that contains the hostname of the portal in its particular runtime environment when used.
The CountryName()
function returns the name of the country that belongs to the specified language
parameter.
The language
parameter is a specific language-code which is in the form en_US
or nl_NL
. (not a text with double quotes). The Expression Editor Functions Pane has a folder Localization where you can find the specific LanguageCodes.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a text that contains the name of the country that belongs to the specified language.
Returns Unknown
if the parameter is unknown.
Shows a syntax error "parameter mismatch" in the expression editor if the parameter is not a valid LanguageCode.
The CountryCode()
function returns two-letter country code of a language
parameter.
The language
parameter is a specific language-code which is in the form en_US
or nl_NL
. (not a text with double quotes). The Expression Editor Functions Pane has a folder Localization where you can find the specific LanguageCodes.
Returns a text that contains the two-letter country code of a language.
Returns Unknown
if the parameter value is unknown.
Shows a syntax error "parameter mismatch" in the expression editor if the parameter is not a valid LanguageCode.
Name | Type | Required | Description |
---|---|---|---|
This function is SQL compatible. For more information about SQL compatibility, see our .
CountryCode(
)
=> "NL" (when the currentlanguage is set to Dutch)
CountryCode(
(3) )
=> { the country code of the third language in the list of available languages }
Name | Type | Required | Description |
---|
language
languagecode
Specific language code (available within the Localization folder in the Expression Editor.
| languagecode | Specific language code (available within the Localization folder in the Expression Editor. |
The IpAddress()
function gets the IP address of the client.
This function can be used to route users from a certain network to a specific page or a custom login process. It can also be used to track the (public) IP-addresses of your users. Please note that some countries have legislation about using and storing IP-addresses (GDPR).
Returns a text that contains the IP-address of the client viewing the WEM website.
WIKI:
This function is SQL compatible. For more information about SQL compatibility, see our .
The IsPreview()
function checks if the portal is being used in the Preview Runtime environment.
This function allows you to make certain features available only in the Preview environment. For example in a "Visible when" property of a navigation item, or even using a Decision Node in a flowchart to make a detour.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns yes/true
if the portal is being used in the Preview environment.
Returns no/false
otherwise (staging or live).
The IsFirstRequest()
function checks if the server is handling the first request of the client.
The first request of a client is the first time a browser tab connects to any page in your application. All subsequent actions in that same browser tab will no longer be viewed as the first request as long as the session is active.
This function can be used for an action that you would only like to perform when a user opens your application for the first time.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns yes/true
if the server is handling the first request of the client.
Returns no/false
otherwise.
The IsStaging()
function checks if the portal is being used in the Staging Runtime environment.
This function allows you to make certain features available only in the Staging environment. For example in a "Visible when" property of a navigation item, or even using a Decision Node in a flowchart to make a detour.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns yes/true
if the portal is being used in the Staging Runtime environment.
Returns no/false
otherwise (preview or live).
The IsLive()
function checks if the portal is being used in the Live Runtime environment.
This function allows you to make certain features available only in the Live environment. For example in a "Visible when" property of a navigation item, or even using a Decision Node in a flowchart to make a detour.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns yes/true
if the portal is being used in the Live environment.
Returns no/false
otherwise (preview or staging).
The NodeTrail()
function returns the most recent flowchart nodes (to a max of 20 nodes) that the user passed in current flow.
This function can be used in debugging, allowing you to see the history of steps taken before a certain situation is reached. Every number divided by the "," can be used to search for in the flowchart tab, to find the corresponding node.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a text that lists up to the last 20 flowchart nodes that the user passed.
The PortalId()
function gets the id of the current portal.
This function can be used to enable or disable certain features for a specific portal.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns the Id as number of the current portal id.
Checks whether the portal is viewed in HTTPS (secure communication).
In Portal - Hostname Settings you can activate [force https] to make your portal run in secure https-mode.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns yes/true
if the portal is running in secure https mode.
Returns no/false
if portal is running in unsecure http mode.
The ProjectName()
function gets the name of the current project.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a text with the current project name.
The ProjectId()
function gets the id of the current project.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a text of the current project id.
The Setting()
function returns the text value of a project variable. Project variables are configured in the Project Configuration page.
This function in combination with the project variables allows you to have a single place to edit variables that are used in multiple parts of your application. In the example below a project variable named "Support e-mail" is added.
This function is SQL compatible. For more information about SQL compatibility, see our documentation.
Returns the text value of a project variable.
ProjectId()
Result: 34372
Name | Type | Required | Description |
---|---|---|---|
The URLPath()
function returns the path of the current page.
The URLPath can be configured in a when it is a deeplink. Combined with the hostname of the portal, the UrlPath provides a link that can be used as an address or link from outside (in e-mail for example) directly to the flowchart that is linked to the Navigation Item.
This function is SQL compatible. For more information about SQL compatibility, see our .
name
text
a text with the name of a project setting