Creating a custom UDM  
 
 
 
 
  1
6
   
Adding a Relator
   
 
Below are the steps to create a Relator for a node that already exists in the UDM.
   
 
Step 1: Essential attributes
 

 

 
Click the Add relator button to bring up the Relator wizard
   
 

Provide a unique name to the Relator - the name is case-sensitive and cannot include spaces or special characters.

   
 

The node ID is generated by zeroCode.

   
 

The parent node for the Relator is the node for which the Relator is being created (say, the product node).

   
 

Specify the relationship type to be one-to-one or one-to-many. The Type of Related Node lists all the tables that may have linking tables from the parent node. zeroCode figures this out by looking for tables that are one step away, in terms of relationships, from the parent node. If there are no such relationships for the chosen node, a message appears that "There are no relatable types".

   
 

Step 2: Additional attributes

   
 

The name of the Relator is the name you give the Relator in the previous step.

   
 

The type of node being added the name of the Relator table is also shown.

   
 

You can add additional constraints for data retrieval, if you so desire.

   
 

zeroCode shows all the linking tables that it finds between the parent and the type of table that you chose. Select the correct one, with its implied foreign key relationship.

   
 

Choose the type of representation you would like to see for this Relator, as a list of check-boxes or a set o radio-buttons, etc.

   
 

Save the Relator - this saves the UDM. Note that you need to save the HTML after clicking on the Regenerate HTML, if you want to use the default HTML that zeroCode builds for custom UDMs.

 
  1
6