| Business Application Modeling (BAM) / Adding custom code | |
POINT and BLOCK sections are the areas in the generated code where you can add your own code.
Any code added in a POINT or BLOCK is preserved in the application even when the application is rebuilt.
| Description | POINT name | Example |
|---|---|---|
| Import an additional module(s). | import |
{<POINT Name="import" Status="MODIFIED">}
IMPORT FGL mylibrary
{</POINT>}
|
| Add comments in the code. | comment |
{<POINT Name="user.comments" Status="MODIFIED">}
--Additional information about this module.
{</POINT>}
|
| Define modular scope variables. | define |
{<POINT Name="define" Status="MODIFIED">}
DEFINE myvar STRING
{</POINT>}
|
| Define local scope variables. | function.define |
{<POINT Name="fct.uiOpenForm.define" Status="MODIFIED">}
DEFINE myvar STRING
{</POINT>}
|
| Add additional function(s) to the module. | user.functions |
--Add user functions
{<POINT Name="user.functions" Status="MODIFIED">}
FUNCTION dispmsg()
MESSAGE "Program ending"
END FUNCTION
{</POINT>}
|
| Add additional actions for each of the interactive dialog statements (DISPLAY, DISPLAY ARRAY, CONSTRUCT, INPUT, INPUT ARRAY and MENU). | userControlBlocks |
{<POINT Name="fct.uiInput.dlg.userControlBlocks" Status="MODIFIED">}
ON ACTION myaction
CALL dispmsg()
{</POINT>}
|
{<POINT Name="fct.uiDisplay.dlg.userControlBlocks">}{</POINT>}
When
the code is changed, the POINT and BLOCK will include
a Status attribute set to
MODIFIED.{<POINT Name="fct.uiDisplay.dlg.userControlBlocks" Status="MODIFIED">}
ON ACTION test
MESSAGE "testing..." {
</POINT>}