Planet Associates Inc
×
Menu
Index

Name generator mechanism

  
In scenarios where many new object instances are being created, there is an additional IRM feature called Name Generators that enables automatic name generation for those new instances. The feature enables configuring Name Generator objects, which are essentially custom name templates which can be used in different batch naming operations. The feature captures the state of the batch naming-enabled fields - Name, Alternate Name, Numerical Index, and Alpha-numerical Index -- so that the same user, or potentially other users can automatically create non-duplicate names. 
 
The feature is administered through a central Name Generator Manager dialog, which enables Name Generator objects for each Super Category to be created and viewed. Note that name generators cannot be edited, because doing so would compromise the sequence of names generated. The dialog can be accessed from the Managers menu button in the main screen's function bar:
 
 
Name Generator Manager
The dialog consists of two main parts:
 
IRM supports Name Generators for the Super Categories shown in the screenshot image, with the exception of Tickets, which are not Super Categories. For these types of objects, the appropriate object creation dialogs show add a drop-down list of Name Generators for that Super Category, along with "None" shown for selection:
 
When the dialog is entered, whichever Name Generator is set as Default is automatically selected in the dropdown. If there is no Name Generator defined for that Super Category, then None is automatically selected (this latter situation holds if there is no Name Generator at all).
 
Note that this enables the user to establish a standard Name Generator for each of the applicable Super Categories and have that used by default. The idea is to make it easy to instill some object naming discipline on the users, while still maintaining flexibility. This is why the selection of a default Name Generator is not a per-user setting, it's shared across all users.  
 
 
Additional buttons in the dialog enable adding or removing a Name Generator from the list:
removes an existing Name Generator from the grid, but is enabled only for the owner of the Name Generator object
 
- creates a new Name Generator; click on it  opens a pop-out sub-dialog that enables specifying the batch naming fields, along with the name of the Name Generator:
 
The Name Generator's fields are all editable at the of creation, but are read-only afterwards. The fields are as follows:
 
 
Additional caveats
 
To use a Numeric Index the '#' symbol is used in the Name Template as a placeholder where the Numerical Index is substituted. The width of the incrementing number is limited to how many '#' chars are there.
 
For example, if you set the Numerical index as '9', quantity at 5 and enter only a single '#', the ID wraps around to '0','1' etc. In this case a standard warning pop-up dialog opens indicating the index has been exhausted. The same warning appears in case with 'Alphabetic Index' going from Z to A.
 
To use an Alphabetic Index the '@' symbol is used in the Name as a placeholder where the "Alphabetic Index" is substituted. If a single '@' is entered in the Name, for example, to create 4 equipment instances, and the "Alphabetic Index" entered is '8', you will end up getting the first entry as 'blank' in place of the '@' symbol, the '8', then 'A', then 'B'. So a Number is allowed to be entered into the 'Alphabetic Index' field, but it is considered more of an Alpha-numeric index and the resulting instances are numbered '8', '9', 'A', 'B'.
 
It is wise to avoid providing too few characters, because if the entire name "wraps" around, duplicate names will be produced which is generally undesirable. On the other hand, if more than one sequence of "#" and "@" chars appears in the template, the same values will appear multiple times, which is usually not useful.
 
Any dialog that allows creation of more than one object enables selecting an existing Name Generator, or entering the Name Generator Manager to create a new one, as displayed in the sample screenshot below for the Duplicate dialog (explained in more detail in the next topic):
 
After a Name Generator is selected, the appropriate Name and Alternate Name fields in the dialog are automatically filled out with the current values from the Name Generator, but those fields are note editable then and can be changed only by selecting another Name Generator, or none, from the previous drop-down menu: