environment-identification
Web icon

Environment Identification (Web)

Stable version 3.0.0 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded
 on 30 January 2023
 by 
4.0
 (1 rating)
environment-identification

Environment Identification (Web)

Details
Functionality for Environment Identification (Development, Testing, Acceptance, Production). Based on a Site Property that must be correctly configured for each environment (DEV, TST, ACC, PRD). Application Objects (AOs) used: 1 (web screen).
Read more

Functionality for Environment Identification (Development, Testing, Production).

Implementation is based on a Site Property that must be correctly configured for each environment (DEV, TST, PRD), and NOT on any platform metadata.

Provides a public web block 'EnvironmentLabel' that can for example be inserted in the Header web block of a theme; and also actions to enable to identify the current environment: EnvironmentIsDevelopment(), EnvironmentIsTesting(), and EnvironmentIsProduction(). Environment_GetLabel().

Application Objects (AOs) used: 1 (web screen).

Release notes (3.0.0)

New configuration value "ACC" for Acceptance environment. New public action EnvironmentIsAcceptance(). Web block "EnvironmentLabel" adjusted because of new value.

License (3.0.0)
Reviews (1)
by 
2020-10-28
in version 2.0.2
The description is incorrect. I posted a Support Query, and didn't get a response. After resolving it myself and marking it as solved, it was removed. So this is for other potential users.

Look under Logic, change the lower 3 calls(EnvironmentIsDevelopment() , EnvironmentIsTesting() , EnvironmentIsProduction() ).

In each Assign, change the "DEV", "TST" and "PRD" to "dev", "tst" and "prd" respectively.  (Site.EnvironmentType_Max3Chars = "dev")

And remember under Data, Site Properties - EnvironmentType_Max3Chars to the aforementioned LOWER CASE versions despite what the description says.

Otherwise, this is exactly what I need for my current (and future) projects
Team
Other assets in this category