UseAbsoluteUrlByEnvironment property

Official Content

UseAbsoluteUrlByEnvironment is a GAM Application property.
Its purpose is to allow determining the way in which the URL of all the following features will be set up.

Description

In some cases, absolute URLs should be used. In these cases, the data used to set up the URL (Host, Port, Protocol, Virtual Directory) is taken from the Environment settings of the GAM Application.

So, configure "Use Absolute Url By Environment" for the GAM Application.

image_2017630142617_1_png

Next, go to the Environment settings and configure the necessary settings.

image_2017630141127_1_png

Note

The Package and Extension settings are always considered, regardless of the UseAbsoluteUrlByEnvironment property value.

Values 

It accepts GAMBoolean values.

True The Environment settings (Host, Port, Protocol, Virtual Directory) are considered to build the URL.
False The URL is relative, so the settings mentioned above are not considered. This is the default value.


Code:

&Application.UseAbsoluteUrlByEnvironment = &UseAbsoluteUrlByEnvironment //&Application is GAM Application data type.

Environment Settings Initialization

The Application Environment Settings are initialized at two different times:

  1. In the GAM Application's Registration (it can be done through the GAM options in GeneXus toolbar or in a Build operation).
  2. At runtime. If an Application lacks the Environment Settings configuration (or if it's being created), it is completed using the settings of the context where it runs.

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.