Create a New Development Object

New development objects may be created using templates and modeled objects. For main development objects, such as components and entities, it is also possible to create new object by duplicating an existing object.

  • Creating a main development object from a template
    1. Open a project. For more information, see Create a Project and Open an existing project.
    2. In the Templates tab of the Resource Browser, select the desired object template, and drag and drop it onto the project in the Structure Editor.

      This creates both the new object, and a reference to it in the project. The new object has all the properties, script, and sub-objects (if applicable) that the template has.

    3. Rename the object.

      Both the reference object in the project, and the new main development object are renamed.

      For more information, see Naming Rules for Uniface Development Objects.

  • Duplicating a main development object:
    1. Open a main development object. For more information, see Open a Main Development Object for Editing.
    2. Choose Actions >Duplicate.

      A copy of the object (including its properties, script, and sub-objects) is created with a new name, and it is automatically opened in its own editor.

    3. Rename the new object.
    4. Open a project and add the duplicated object to the project.

      For more information, see Add Objects from the Resource Browser.

  • Creating a new subobject from a template
    1. Open a main development object.
    2. In the Templates tab of the Resource Browser, selected the desired object template, and drag and drop it onto a valid object in the Structure Editor.

      Depending on the object, you may be prompted to insert it as a child, or before or after the target object.

      The new object is added to the structure. If necessary, Uniface assigns it a new name by adding a number to the original name.

    3. Rename the object, as desired.
  • Creating a derived object from a modeled object

    Derived entities are created by adding modeled components to the data structure of a component. Derived components are created by adding modeled components to a Project Editor. In both cases, you select the modeled object from the Model tab instead of the Templates tab.

Related Topics