Promotic

Object PmaWebLang (Web language versions)

Description:
The object represents several Web addresses, each of them corresponds to one language version. The number of language versions is set in the "All used languages" configurator in the PmaRoot object.
If the application is defined only for one language (if there are no other languages defined in the "All used languages" configurator), then the PmaWebLang object has no meaning and should not be used.

In the PmaWebLang object the PmaWebFolder, PmaWebDir and PmaWebInfo objects can be created.
The PmaWebLang object can be created in the PmaWeb object. There can be only one PmaWebLang object in the PmaWeb object.
The client requiring data from this Web component is of the PmDataClient type from the licence point of view. But nested Web components already have their own licences, for example, Web panels, Alarms and Events, Trends, can be viewed only by clients of the PmWebClient type.
This object inherits properties, methods and events of the PmaObject object.
Properties and methods inherited from the PmaObject object:
AddEvent()Registers a function into the specified event
GetInfo()Returns the Info object with the specified name
GetOwnedByIndex()Returns the subobject defined by its index
GetOwnedByName()Returns reference to the subobject defined by its name
GetOwnedByType()Array of references to the subobjects
GetOwnedNum()Returns number of subobjects in the object
GetPar()Reading the value of the Pma object parameter (or its parents)
GetPathName()Object name with the path to this object
GetPermission()Returns permission of corresponding operation from object
MethodsAccess to designer's methods of this object
NameObject name (without the path)
ParentReturns reference to the parent Pma object
Pm()Returns reference to the Pma object or to its implementation subobject
RemoveEvent()Unregisters the function in the specified event
RootReturns reference to the root application object PmaRoot
Events inherited from the PmaObject object:
onStartIs triggered for each object in runtime only once at the beginning
onStopIs triggered for each Pma object in runtime only once at the stop of the application
Configuration tabs:
ObjectGeneral information about the object
EventsDefinition of object events algorithms
PermissionsObject permissions
Note:
Except the objects inserted directly, also another objects (Web components) located elsewhere in the Pma objects tree can be registered into this object (e.g. PmaPanel, PmaWorkspace, PmaTrendGroup, PmaAlarmGroup, PmaData objects, etc.). These objects are registered into this object using the "Web server" tab in the "PmaWeb object" configurator. All these objects will become Web subcomponent of this object, i.e. URL address of these subcomponents will begin with the URL address of this object.
It is useful to register into the PmaWebLang object only those Web subcomponents that are language dependent (e.g. PmaPanel, PmaTrendGroup, PmaAlarmGroup). The objects that are language independent (e.g. PmaData) are usually registered outside this object.
The PmaPanel object represents a page created by the designer. It is possible to display such panel in multiple languages when using Macro expression $.text instead of static texts.

From the Web client point of view the files offered by the PmaWebLang object are accessible at URL:
http://ComputerName/lang
where lang is language identifier and it can be for example: en (English), cs (Czech), sk (Slovak), pl (Polish), de (German), ru (Russian)...
The Web components registered into this object are accessible at URL (e.g. for Russian):
http://ComputerName/ru/SubcomponentId

History:
Pm9.00.00: Object name changed: PmWebLang -> PmaWebLang
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.