Create and Add Objects to a Project

Use the Project Editor to create new main development objects and add existing objects to the project.

When you add an object to a project, you are actually creating a reference to a Main Development Object. If the object does not exist yet, it is created.

Most objects are created using templates, but you can also create new components using modeled components, and you can create entities for existing DBMS tables by loading their definitions from the database. For more information, see Modeled Components and Load Definitions Facility.

  1. To create a new object from a template:
    1. In the Resource Browser, choose the Templates tab.
    2. Select the template for the type of object you want to create.
    3. Drag and drop the template onto the project object in the Project Structure . Alternatively, you can right-click, and choose Insert into Project.

      This creates both a new Main Development Object and a reference to it in the Project.

    4. Rename the object.

      Click the name of the object in the Project Structure Editor or Properties Inspector, then type the new name, and press Enter. Alternatively, right-click the object in the Project Structure Editor and select Rename.

      Both the name of the reference object and the Main Development Object are changed to the new name.

    Note: To create a derived component from a modeled component, use the Model tab instead of the Templates tab.

  2. To add an existing development object:
    1. In the Resource Browser, choose the Objects tab.
    2. In the U-Bar of the Objects tab, click the arrow and select the type of object you want to add.

      The objects are now listed in the Resource Browser.

    3. Select an object, right-click, and choose Insert into Structure.

      A reference to the object is added to the Project.

  3. To remove an object from a project, right-click and choose Delete.

    This deletes only the reference to the object. The object itself can only be deleted by opening it from the Main U-Bar and choosing Actions > Delete.

To edit an object referenced by the project, double-click it in the Project Structure. Alternatively, select it, right-click, and choose Open.

Related Topics