Creating New Elements
Contents
- 1 Elements Explained
- 1.1 The Relationship between Objects and Elements
- 1.2 Creating New Elements
- 1.2.1 Optional Linking Field Attributes
- 1.2.2 Optional Field Attributes
- 1.2.3 Element Types
- 1.2.3.1 Text Element Type
- 1.2.3.2 Number Element Type
- 1.2.3.3 Date Element Type
- 1.2.3.4 Date and time Element Type
- 1.2.3.5 Email Element Type
- 1.2.3.6 URL Element Type
- 1.2.3.7 Currency Element Type
- 1.2.3.8 Percentage Element Type
- 1.2.3.9 Long Text Element Type
- 1.2.3.10 Drop down Element Type
- 1.2.3.11 Boolean Element Type
- 1.2.3.12 Attachment Element Type
- 1.2.3.13 Image Element Type
- 1.2.3.14 Time Element Type
- 1.2.3.15 Multiselect Element Type
UNDER CONSTRUCTION
Elements Explained
An element could best be explained as an item on a page such as a text box, drop down, option box, or button. This is exactly what we create when we select create element.
Once an element has been created, this will need to be added to the screen layout.
Please see Modifying Screen Layouts for more information on this.
The Relationship between Objects and Elements
The Subscribe-HR System is an object orientated system. Every page is an object.
If we were wanting to create a new page we would be creating a new object in the system.
An Element is an item on a page. Items are required to be linked to a page (otherwise known as an Object).
This is enforced by requiring that an Object be selected first before an Element can be created.
Example: If I want to create a new element and add this to the Employee Medical form, I would have to select Objects, locate the Object called Employee Medical and then select Elements.
Creating New Elements
- After logging into the Subscribe-HR portal, select the Development TAB.
- Select the Objects folder.
- Select the Object you wish to create the element on.
If you wish to create a new object please see the documentation Creating New Objects. - Select the Elements sub folder.
- Select the [Create] button.
- Enter the Element name in Title Case. This should be a name that you can easily identify what the element is. Example: Item Serial Number.
- Select the Element Record Type. This defines what type of element will be used.
This is explained below, however not all the following attributes are available to all Element Record Types.
Example: Decimal Places would relate to Type Number, but not Test. - Enter the Element label. this is the text that you wish to appear next to the element. Example: First Name: .
- Select the required Optional Field Attributes listed below these steps which relate to the Field Type selected.
- Select the Groups that can Edit this element. You are selecting your defined user groups as being able to edit the save values in this element.
- Select the Groups that can View this element. You are selecting your defined user groups as being able to see this element on a page.
This is a good feature and can be used for Example: in scenarios where only HR Managers may only be able to edit and see comments on a page, self service users cannot see the comments. - Select the Self-Service Manager that can View this element. You are selecting your defined user groups as being able to see this element on a page.
- Select the Self-Service Manager that can Edit this element. You are selecting your defined user groups as being able to edit the save values in this element.
- Enter any element Help.
- Select the [Save] button.
Optional Linking Field Attributes
Using the Link to User Object option
The Link to User Object option is available on Drop down and Multiselect elements.
By linking a drop down or multiselect element to the User Object means that the drop down or multiselect element will be populated with all users in the system.
- Select the Element record type to be Drop Down or Multiselect.
- Select the Link to User Object checkbox.
- Select the Only Users In These Roles appropriate security groups who can view and edit this element.
- Select the [Save] button.
Using the Link to Code Library option
The Link to Code Library option is available on Drop down and Multiselect elements.
By linking a drop down or multiselect element to a Code Library means that the drop down or multiselect element will be populated with entries from the selected Code Library Entry.
- Select the Element record type to be Drop Down or Multiselect.
- Select the Link to Code Library checkbox.
- The Code library entry drop down will appear.
- Select the desired Code Library.
- Select the [Save] button.
Using the Link to Object option
The Link to Object option is available on Drop down and Multiselect elements.
By linking a drop down or multiselect element to a System Object means that the drop down or multiselect element will be populated with entries from the selected System Object.
- Select the Element record type to be Drop Down or Multiselect.
- Select the Link to Object checkbox.
- The System Object drop down will appear.
- Select the desired System Object.
- The Object Fields drop down will appear.
- Select the 1 or more (holding down the Ctrl key) desired System Object Fields.
- The Object Condition text field will appear.
- Enter the desired Conditional Code for System Object query. Example: If you want to only show Managers from Employee list, then "cb_manager = 1"
- Select the [Save] button.
Optional Field Attributes
- Check the Mandatory field if you wish to make this element a field that must be filled in before the record can be saved.
- Check the System Generated (non-editable) if the field is to be fully maintained by the System. It will be View only when on modifying screen.
- Check the Not editable after the value is saved field if you do not want to be able to edit the value saved in the element. This is often used for creating unique identifiers in a record set.
- Check the Do not show on create form if you do not want this element to appear when you select the [Create] button.
- Check the Display on search results if you want the data saved in this element to appear in the object search list.
- Check the Use for searching if you want to be able to search on this data from the search list.
- Check the Use for predictive text searching if you want to enable predictive text search on this element.
- Check the Mask Value if you wish to hide the actual value in the element. This will appear as ****.
- Check the Display on Bread Crumbs if you wish for this elements saved value to appear in the breadcrumb trail.
- Check the Enable Datepicker to select the Date from a popup window.
- Check the Enable Timepicker to select the Time from a popup window.
- Check the Enable Rich Text Editor to switch on options to be able to format the text (ie. Bold, Italic, Font & Size, etc).
- Check the Enable Autocomplete to enable dropdown History of previous data entered in this field.
- Check the Link To User Object see Using the Link to User Object option for more details.
- Check the Link To Contacts to display dropdown of all Users, Managers & Agents.
- Check the Link To Code Library see Using the Link to Code Library option for more details.
- Check the Link To Object see Using the Link to Object option for more details.
- Enter the Minimum Field Length in characters.
- Enter the Maximum Field Length in characters.
- Enter the Field Width(pixels) to set the width of the input field.
- Enter the Field Height(pixels) to set the height of the input field.
- Enter the Decimal Places to set the number of decimal places.
- Check the Boolean Display Type & select either Checkbox or Drop Down (Yes/No).
- Check the Resize Image & enter the Resized Width & Resized Height.
- Enter the Default Value if required.
Element Types
Text Element Type
The text element type can record up to a maximum of 255 characters.
If you require more text you should consider using the Long Text element type.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Mask Value
- Display on Bread Crumbs
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Field Width(pixels)
- Default Value
Number Element Type
The number element can only store numeric values up to the maximum length of 255 characters.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Display on Bread Crumbs
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Decimal Places
- Default Value
Date Element Type
The date element can only store the date, in the local settings format.
By enabling the date picker you are enabling the ability to click in this
field and have the calendar show.
If you require Date and Time please use the Data and time element type.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Display on Bread Crumbs
- Enable Datepicker
- Enable Autocomplete
- Field Width(pixels)
- Default Value
Date and time Element Type
The Date and time element can only store the date and time, in the local settings format.
By enabling the date picker you are enabling the ability to click in this
field and have the calendar show. The calendar cannot select the time.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Display on Bread Crumbs
- Enable Datepicker
- Enable Autocomplete
- Field Width(pixels)
- Default Value
Email Element Type
The Email element can store alpha and numeric values however has validation to check if this is a valid email address. The validation checks for @ and .
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Mask Value
- Display on Bread Crumbs
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Field Width(pixels)
- Default Value
URL Element Type
The URL element can store alpha and numeric values however has validation to check if this is a valid URL.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Mask Value
- Display on Bread Crumbs
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Field Width(pixels)
- Default Value
Currency Element Type
The Currency element can store numeric values only to a maximum of 255 characters.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Display on Bread Crumbs
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Field Width(pixels)
- Decimal Places
- Default Value
Percentage Element Type
The Percentage element can store numeric values only to a maximum of 255 characters.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Display on Bread Crumbs
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Field Width(pixels)
- Decimal Places
- Default Value
Long Text Element Type
The Long text element can store alpha and numeric values.
By enabling the rich text editor you are switching on options to be able to format the text (ie. Bold, Italic, Font & Size, etc).
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Use for searching
- Enable Rich Text Editor
- Enable Autocomplete
- Minimum Field Length
- Maximum Field Length
- Field Width(pixels)
- Field Height(pixels)
- Default Value
Drop down Element Type
The Drop down element type requires to be linked to a code library.
This is where the drop down will get its values from. See the Adding Data to the Code Library for more information.
Linking to the code library
After the Drop down element is created check the Link to code library checkbox, this will display a drop down called Code library entry, select from the drop down the desired code library.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Display on Bread Crumbs
- Enable Autocomplete
- Link To User Object
- Link To Contacts
- Link To Code Library
- Link To Object
- Field Width(pixels)
- Field Height(pixels)
- Default Value
Boolean Element Type
The Boolean element type is a YES / NO or 0 / 1 option.
Booleans have the option of being a check box which when checked = true and unchecked = false
Booleans can also be a drop down, however this is not configurable and you only have the choice of YES or NO
Variables for this element:
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Enable Autocomplete
- Boolean Display Type
- Default Value
Attachment Element Type
The Attachment element type allows the uploading of a single file to the server per record.
Variables for this element:
- System Generated (non-editable)
- Enable Autocomplete
- Use Simple Attachment
Image Element Type
The Image element type is a place holder for an image, this allows the uploading of a popular format of image, and for this to be displayed on screen.
The resized feature is handy to use especially when you need to control what the screen may look like if a large image was uploaded.
Variables for this element:
- System Generated (non-editable)
- Enable Autocomplete
- Resize Image
Time Element Type
The time element type only allows numeric characters, and stores the time only.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Display on search results
- Use for searching
- Use for predictive text searching
- Display on Bread Crumbs
- Enable Timepicker
- Enable Autocomplete
- Field Width(pixels)
- Default Value
Multiselect Element Type
The Multiselect element type allows for selecting of multiple options. Multiselect need to be linked to the code library.
Variables for this element:
- Mandatory
- System Generated (non-editable)
- Not editable after the value is saved
- Do not show on create form
- Use for searching
- Display on Bread Crumbs
- Enable Autocomplete
- Link To User Object
- Link To Contacts
- Link To Code Library
- Link To Object
- Field Width(pixels)
- Field Height(pixels)
- Default Value