Using POINTs and BLOCKs

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.

Code added to a POINT or BLOCK section is preserved in a .code file that is used each time the application is compiled. If you are using Source Code Management, the .code file must be committed with the project. It is not necessary to commit the generated language-specific generated files.

To remove all changes you have made, you can simply remove the .code and all generated files.


POINT sections are located within each function BLOCK. The more granular POINT sections are located in all relevant locations for adding business logic. Common uses of a POINT include defining your own variables, or setting conditions on SELECT statements.

You are responsible for the validity of the code in a POINT.


Each function in the generated code is nested within a BLOCK section.

You can change the behavior of the generated function, however once new code has been added to a BLOCK, you take responsibility for the validity of all the code in that BLOCK.

Status attribute

During the first application generation, POINT and BLOCK sections will only contain the Name attribute.
/*<POINT Name="Account_userid_Collection.fields">*/ /*</POINT>*/
When the code is changed, the POINT and BLOCK will include a Status attribute set to MODIFIED.
/*<POINT Name="Account_userid_Collection.fields" Status="MODIFIED">*/
 int flag;