Globals are predefined global variables that can be accessed by different objects within a project and are used when the same information is required repeatedly by various Fabric objects.
A Global can be used either in a map (Table Population of an LU table or a Reference table or Parser) or in a Java code (a Project function or a Web Services).
The following scenarios describe how Globals can be used in Fabric objects.
Click for more information about Globals – Code Examples.
To enable using the Globals in Java code, the following import statements are generated automatically by the Fabric infrastructure for every new Java file created in Fabric like a function or Web Service:
// import of shared Globals
import com.k2view.cdbms.shared.Globals;
// Import of Globals under the LU
import static com.k2view.cdbms.usercode.lu.<LU name>.Globals.*;
When opening a function or a Web Service in Fabric, a list of all Globals is displayed in the Objects tab in the left panel of the window.
Click the grey arrow on the left of the window to display the panel and the list of Globals.
Click for more information about Globals – Code Examples
Click for more information about How to Create Project Functions
Globals can be overridden via the Fabric Server using Fabric commands without re-deploying an LU.
Click for more information about Global's override using SET and SET_GLOBAL commands.
Globals are predefined global variables that can be accessed by different objects within a project and are used when the same information is required repeatedly by various Fabric objects.
A Global can be used either in a map (Table Population of an LU table or a Reference table or Parser) or in a Java code (a Project function or a Web Services).
The following scenarios describe how Globals can be used in Fabric objects.
Click for more information about Globals – Code Examples.
To enable using the Globals in Java code, the following import statements are generated automatically by the Fabric infrastructure for every new Java file created in Fabric like a function or Web Service:
// import of shared Globals
import com.k2view.cdbms.shared.Globals;
// Import of Globals under the LU
import static com.k2view.cdbms.usercode.lu.<LU name>.Globals.*;
When opening a function or a Web Service in Fabric, a list of all Globals is displayed in the Objects tab in the left panel of the window.
Click the grey arrow on the left of the window to display the panel and the list of Globals.
Click for more information about Globals – Code Examples
Click for more information about How to Create Project Functions
Globals can be overridden via the Fabric Server using Fabric commands without re-deploying an LU.
Click for more information about Global's override using SET and SET_GLOBAL commands.