To Add Custom Code to a Project

You can add a .cs file with some custom code to a customization project. To do this, perform the following actions:

  1. Open the customization project in the editor. (See To Open a Project for details.)
  2. Click Code in the navigation pane to open the Code page.
  3. Click Add New Record (+) on the page toolbar.
  4. In the Create Code File dialog box, which opens, select Code File in the File Template box, as the screenshot below shows.
  5. In the Class Name box, specify the name of the new class to be added to the project.
  6. Click OK.
    Figure 1. Adding a Code item for a custom graph to the project


The platform creates the code template of the new class, saves the code as a Code item of the project in the database, and opens the item in the Code Editor, as the following screenshot shows.

Figure 2. Viewing the custom code file added to the project