Instructions

You have two different ways of using your templates:

  • Uniface native mode
  • 0minutes

To use Uniface native mode, open a component using menu option "Open" and give a new name. Then Uniface will ask if you want to use a template.

To use 0minutes, create a new component using menu option "New". You will be prompted for a name. The component name must be unique and 0minutes will make sure for it. Also you may ask 0minutes to create an automatic naming based on a pattern. The token ^D is substituted by the present date.

Once you select a template, you get into the bindings form. On the left are the original objects of the template, and on the right you can choose the entities and fields that will be part of the new component.

0minutes makes an automatic binding based on these rules:

  • If the template field is called KEY, it is assigned to all primary key fields of the entity
  • If the template field is called TECH, it is assigned to all fields marked as Technical. This can be set inserting '#Tech' as the first line of the Comments of the field.
  • If the template field is called NOKEY, it is assigned to all fields that do not belong to above groups.
  • The binding also sees the termination of the fields. Therefore, if there is a coincidence in the termination the binding will link the template field with the entity field. For example, if the template field is called NTOT, 0minutes will bind it with all the entity fields with this termination. This rule is useful if you are following a naming standard (see mine)

 

 

 

 

 

 

Related docs

Naming conventions - .pdf (184kb)