Relationships with an Object

From Subscribe-HR Wiki Help
Jump to: navigation, search
(Created page with '{{page.name: Development Module: Defining Relationships for an Object - Subscribe-HR Wiki}} {{page.head: Relationships with an Object}} __TOC__ ==Defining Relationships for an …')
(No difference)

Revision as of 05:14, 28 April 2010

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.
Object rel.gif
The Object Employee Medical started life as a parent, and then a Parent of relationship was defined.
We can see below that the Employee Medical is a child of the Employee Object due to the relationship defined.
Menu rel.gif

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 sub-folder.
  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 drop down.
  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 in bold, the question will not be saved unless mandatory fields are filled in first.

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

  1. Select the
  2. After logging into the Subscribe-HR portal, select the Development TAB
  3. Select the Objects folder.
  4. Select the Employee Object.
  5. Select the Relationships sub-folder.
  6. Select the create button.
  7. Select the Relationship type as Parent of.
  8. Select the Object name Elements.
  9. Select the Save button.


Our output result is:
Elements obj.gif


Subscribehr logo.gif