Global Parameters Information (Magic xpa 4.x)
A running tool application can retrieve information about the current Magic xpa application. Use the GetParam function to retrieve preset global values about the handled application through the global value names listed in the table below.
|
|
MG_ApplicationIDX
|
The entry number of the application in the systems list
|
MG_ApplicationPrefix
|
The application prefix
|
MG_ApplicationName
|
The name of the application
|
MG_CurrentObject
|
A number representing the internal serial number of the object on which the developer is parked.
|
MG_CurrentObjectISN
|
The number representing the internal serial number of the object on which the developer is parked.
|
MG_CurrentObjCheckedOut
|
The engine returns True when the last parked or handled object is checked out or False when the last parked or handled object is checked in. When the application is not defined for team development, the setting does not display a value.
|
MG_CurrentRepository
|
A number representing the repository that developer was parked on prior to activating the tool application.
The Repository identifiers are:
1 – Models
2 – Data Sources
3 – Programs
4 – Help Screens
5 – Rights
6 – Menu
7 – CRR
|
MG_ProjectGUID
|
The GUID of the project
|
MG_StudioMode
|
This global value is used to indicate the mode that the tool application is operating and should be set before selecting a tool application. The mode identifiers are:
-
1 – Development
-
2 – Running
-
3 – Debugging
|
MG_TeamDev
|
Y when the application is in team development mode. N when the application is not in team development mode.
|
MG_ToolEntry
|
A string representing the INI entry of the activated tool.
|
MG_TotalModels
|
The total number of models, not including components.
For example, if an application has 20 models this global parameter returns the number 20.
|
MG_TotalTopModels
|
The total number of models set with no folder
|
MG_TotalTables
|
The total number of data sources, not including components
|
MG_TotalTopTables
|
The total number of data sources set with no folder
|
MG_TotalPrograms
|
The total number of programs, not including components
|
MG_TotalTopPrograms
|
The total number of programs set with no folder
|
MG_TotalHelpScreens
|
The total number of help screens, not including components
|
MG_TotalTopHelpScreens
|
The total number of help screens set with no folder
|
MG_TotalRights
|
The total number of rights, not including components
|
MG_TotalTopRights
|
The total number of rights set with no folder
|
MG_TotalComponents
|
The total number of components
|
MG_TotalTopComponents
|
The total number of components set with no folder
|