Previous Topic: Changing a Project

Next Topic: Chapter Review

Preserving Data

By default, each time you build your application, CA Plex rebuilds all of the objects you select in the Generate and Build window, including the tables in your database. Because rebuilding a database table erases all data in the table, if you leave your local model set up as it is, the next time you build, you will lose all of the data you just entered.

You can prevent the loss of this data by entering a TBL implement SYS No triple for the table. This keeps the table from being rebuilt the next time you build the entity to which it is scoped (in this case, Project).

Remember, if you make any changes to an entity that affect its table, such as adding fields to it, you must set the implement SYS value back to Yes, and regenerate the table. Any data you entered in the table will be lost. If you want to preserve data entered after rebuilding, make sure you reset the implement SYS value to No.

To set the generation status for the Project entity table

  1. From the Object Browser, drag Project.Physical Table to the source object field in the Model Editor.
  2. From the verb list, select implement SYS.
  3. From the target object field, select the value No, then press Enter.
  4. Save your model.