Before and After code is created in the same manner for both Classes and Templates, via the Class or Template page.
Before and After Code for Classes can be created from within the Freedombase Designer Class page, by displaying the Class that you want to add Before or After code to, and then selecting the Create hyperlink (1) beside the Before Code or After Code heading.
In the example provided below, by pressing the Before Code or After Code 'Create' hyperlink, the system would create the appropriate code, then open the code to be edited in the Code Maintenance page. In this example, the code would be created for the class CUSTOMER in the MAILBOX system.

Template Before and After Code can be created from withhin the Freedombase Designer Template page, by displaying the Template that you want to add Before or After code to, and then selecting the Create hyperlink (2) beside the Before Code or After Code heading.
In the example provided below, by pressing the Before Code or After Code 'Create' hyperlink, the system would create the appropriate code, then open the code to be edited in the Code Maintenance page. In this example, the code would be created for the OPENACCOUNTS_CLIENT_M.htm template.

Template During code, also known as Execute code, must be manually created, as there can be any number of During code references, with many different names, within one Template. During/Execute code can be created through any code editor that is compatible with the system that Freedombase is being run on; or, through the Code page of the Freedombase Designer.
During/Execute code requires the following parameter list: TemplateName, Command, User, DatabaseClassList, KeyList, InstanceList, ErrorMessageList, SequenceList, NoUpdateFlagList, iSearchFlag, DataIn, ExecuteResponse, iMetaErrorFlag.
For example: SELECT_IMAGE_SUBROUTINE(TemplateName, Command, User, DatabaseClassList, KeyList, InstanceList, ErrorMessageList, SequenceList, NoUpdateFlagList, iSearchFlag, DataIn, ExecuteResponse, iMetaErrorFlag)
Please see the During/Execute tutorial pages for further information on the parameter list.
| previous | next |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |

