Relationships with an Object

From Subscribe-HR Wiki Help
Jump to: navigation, search
Line 4: Line 4:
 
__TOC__
 
__TOC__
  
==Defining Relationships for an Object==
+
=Defining Relationships for an Object=
 
When defining relationships in the Subscribe-HR system, you are defining the Parent and Child relationships of Objects. This is also how we create folders and sub-folders in the system.
 
When defining relationships in the Subscribe-HR system, you are defining the Parent and Child relationships of Objects. This is also how we create folders and sub-folders in the system.
 
<br>
 
<br>
 
When we create a new object or page by default the Object is a Parent, when we define the relation the Object now knows where it belongs, and this maybe a child.
 
When we create a new object or page by default the Object is a Parent, when we define the relation the Object now knows where it belongs, and this maybe a child.
 
<br>
 
<br>
[[File:object_rel.gif]]
+
 
 +
<i><b>Example:</b>The Object <b>Employee Medical</b> started life as a parent, and then a Parent of relationship was defined.<br>
 +
The Object <b>Employee Medical</b> is a child of the Object <b>Employee</b> due to the relationship defined.</i><br>
 +
 
 +
To add an object (sub-folder) under a parent object (folder), you should select the Parent Object first and then define a <b>Parent of</b> relationship with the desired Object.
 
<br>
 
<br>
The Object '''Employee Medical''' started life as a parent, and then a Parent of relationship was defined.
 
 
<br>
 
<br>
We can see below that the Employee Medical is a child of the Employee Object due to the relationship defined.
+
To move a Parent Object and its Child objects under a new Parent Object, you should select the Object you wish to move, and then define a <b>Child of</b> relationship with the desired object.
<br>
+
To add an object (sub-folder) under a parent object (folder), you should select the Parent Object first and then define a '''Parent of''' relationship with the desired Object.
+
<br>
+
<br>
+
To move a Parent Object and its Child objects under a new Parent Object, you should select the Object you wish to move, and then define a '''Child of''' relationship with the desired object.
+
  
===Creating the relationship for an Object===
+
==Creating the relationship for an Object==
# After logging into the Subscribe-HR portal, select the Development TAB
+
# After logging into the Subscribe-HR portal, select the <b>Development</b> TAB
# Select the Objects folder.
+
# Select the <b>Objects</b> Folder.
 
# Select the Object that you wish to define a relationship for.
 
# Select the Object that you wish to define a relationship for.
# Select the '''Relationships''' sub-folder.
+
# Select the <b>Relationships</b> SubFolder.
# Select the create button.
+
# Select the [Create] button.
# Select the Relationship Type.<br>'''Parent of''' means that the object you select in the '''Object Name''' field below will become the Child of the Object you are working under.<br>'''Child of''' means that the select Object you are working under will become the Child of the Object you select in the '''Object name''' look-up.
+
# Select the Relationship Type:<br><b>Parent of</b> means that the object you select in the <b>Object Name</b> field below will become the Child of the Object you are working under.<br><b>Child of</b> means that the select Object you are working under will become the Child of the Object you select in the <b>Object name</b> look-up.
 
# Select the Object name. (if you created a new object / page you will find it in this drop down)
 
# Select the Object name. (if you created a new object / page you will find it in this drop down)
# Select the Save button.
+
# Select the [Save] button.
<b>Mandatory fields are marked in bold, the question will not be saved unless mandatory fields are filled in first.</b>
+
<b>Mandatory fields are marked with Red Asterisk, the record will not be saved unless mandatory fields are filled in first.</b>
 
<br>
 
<br>
 
<br>
 
<br>
'''Example:'''
+
<i><b>Example:</b> We have created an Object called <b>Employee Medical</b> and wish for this Object to appear under the <b>Employee</b> Folder.
 
<br>
 
<br>
We have created an Object called Elements and wish for this Object to appear under the Employee Folder.
+
# After logging into the Subscribe-HR portal, select the <b>Development</b> TAB
<br>
+
# Select the <b>Objects</b> Folder.
# Select the
+
# Select the <b>Employee</b> Object.
# After logging into the Subscribe-HR portal, select the Development TAB
+
# Select the <b>Relationships</b> SubFolder.
# Select the Objects folder.
+
# Select the [Create] button.
# Select the Employee Object.
+
# Select the Relationship type as <b>Parent of</b>.
# Select the Relationships sub-folder.
+
# Select the Object name <b>Employee Medical</b>.
# Select the create button.
+
# Select the [Save] button.
# Select the Relationship type as Parent of.
+
# Select the Object name Elements.
+
# Select the Save button.
+
<br>
+
'''Our output result is:'''
+
  
 
+
<br><br>[[File:subscribehr_logo.gif]]
<br>
+
[[File:subscribehr_logo.gif]]
+

Revision as of 06:28, 9 April 2013

Defining Relationships for an Object

When defining relationships in the Subscribe-HR system, you are defining the Parent and Child relationships of Objects. This is also how we create folders and sub-folders in the system.
When we create a new object or page by default the Object is a Parent, when we define the relation the Object now knows where it belongs, and this maybe a child.

Example:The Object Employee Medical started life as a parent, and then a Parent of relationship was defined.
The Object Employee Medical is a child of the Object Employee due to the relationship defined.

To add an object (sub-folder) under a parent object (folder), you should select the Parent Object first and then define a Parent of relationship with the desired Object.

To move a Parent Object and its Child objects under a new Parent Object, you should select the Object you wish to move, and then define a Child of relationship with the desired object.

Creating the relationship for an Object

  1. After logging into the Subscribe-HR portal, select the Development TAB
  2. Select the Objects Folder.
  3. Select the Object that you wish to define a relationship for.
  4. Select the Relationships SubFolder.
  5. Select the [Create] button.
  6. Select the Relationship Type:
    Parent of means that the object you select in the Object Name field below will become the Child of the Object you are working under.
    Child of means that the select Object you are working under will become the Child of the Object you select in the Object name look-up.
  7. Select the Object name. (if you created a new object / page you will find it in this drop down)
  8. Select the [Save] button.

Mandatory fields are marked with Red Asterisk, the record will not be saved unless mandatory fields are filled in first.

Example: We have created an Object called Employee Medical and wish for this Object to appear under the Employee Folder.

  1. After logging into the Subscribe-HR portal, select the Development TAB
  2. Select the Objects Folder.
  3. Select the Employee Object.
  4. Select the Relationships SubFolder.
  5. Select the [Create] button.
  6. Select the Relationship type as Parent of.
  7. Select the Object name Employee Medical.
  8. Select the [Save] button.



Subscribehr logo.gif