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
- Open a project. For more information, see Create a Project and Open an existing project.
- 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.
- 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:
- Open a main development object. For more information, see Open a Main Development Object for Editing.
- Choose
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.
. - Rename the new object.
- 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
- Open a main development object.
- 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.
- 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.