Oracle by Example brandingCreating a HCM Spreadsheet Data Loader Template for Loading Element Entries

section 0Before You Begin

This 30-minute tutorial shows you how to create a HCM Spreadsheet Data Loader (HSDL) template to bulk load element entries for a specific element.

Background

HCM Spreadsheet Data Loader is a tool that enables you to create use-case specific bulk data loading spreadsheets for business users to use.

In this tutorial, you will:

  • Create a spreadsheet template to bulk-load element entries.
  • Configure the template attributes.
  • Validate and test the template.
  • Simplify the spreadsheet.
  • Assign the job roles that will have access to use the spreadsheet and activate it.

Tutorial Scenario

In this tutorial, you'll create a template to bulk-load Overtime element entries. For the purposes of the tutorial, the Overtime element has three input values: Hours, Multiple and Periodicity. However, you can use the steps in this tutorial to create an element entry spreadsheet for any element.

What Do You Need?

  1. A Windows machine with the Desktop Integrator installed. Downloaded this from the Tools menu in the application. Desktop Integrator is not available on the Mac operating system.
  2. Access to the Spreadsheet Templates task in order to create and maintain spreadsheet templates.

    Follow the steps in the Securing the Spreadsheet Templates Task topic within the Configure HCM Spreadsheet Data Loader Security tutorial, to configure a role with the access to create spreadsheet templates for the Worker business object.

    Note: Custom job roles should be configured to provide access to HCM Spreadsheet Data Loader functionality.


section 1Create the Spreadsheet Template

In this step, you'll create a spreadsheet template and select the attributes that are required to create new element entries.

  1. On the home page, click My Client Groups > Data Exchange.
  2. On the Data Exchange page, select Spreadsheet Templates.
  3. Click Create to open the Create Template dialog box.
  4. Click Create to create a new template
  5. Specify the template name, code, the object the template is for (in this case Element Entry) and optionally provide a description. Leave the Supported Action as 'Create and Update'.
    Specify the template details

    Click OK. You'll be navigated to the Define tab.

  6. Click Design.
  7. Cick Design
  8. Select the Element Name attribute in the Available Attributes panel and add it to the Selected Attributes panel.
    Select the Element Name attribute

    You'll be asked which key type you want to use to identify the element entries in the spreadsheet.

    Specify a key type of User Key

    Select User Key and click OK.

    Other mandatory attributes are automatically added to the list of selected attributes.

    Mandatory attributes are automatically added

    Note: The key icon prefixes all attributes that uniquely identify a record in the spreadsheet.

    The magnifying glass icon indicates that the attribute provides a list of values in the spreadsheet.

  9. Drag the Creator Type attribute from the Available Attributes panel and drop it in the Selected Attributes panel.
    Include the Creator Type attribute

    This attribute is required for new element entries. The template now includes the attributes required to specify the element the entry is for.

  10. Click on the choice list next to the Available Attributes header and select Element Entry Value.
    Select the Element Entry Value component in the Available Attributes header

    The element entry value attributes can now be seen in the Available Attributes panel.

  11. Add the Input Value Name and Entry Value attributes to the list of selected attributes.
    Add the Input Value and Entry Value attributes

  12. Optionally, check the Show excluded attributes checkbox.
    Show attributes excldued from the spreadsheet

    Often when you add attributes to the template, other mandatory attributes are added but defaulted and hidden. An icon to the right of the attribute name identifies attributes in the template definition that won't be seen in the spreadsheet.

  13. Save the template.
    Save the template

    Next, you'll configure the template attributes.


section 2Configure the Template Attributes

Once the template is tested, most of the defaulted attributes are hidden from the spreadsheet. In this step, you'll configure the default values but not hide the attributes, until you have successfully uploaded an Overtime element entry using the spreadsheet.

  1. In the Selected Attributes panel, select the Legislative Data Group attribute. Click the Edit icon on the panel toolbar.
  2. Select the Legislative Data Group attribute and click Edit
  3. Define a default for the Legislative Data Group attribute by selecting the Value radio button, selecting a type of Constant value and specifying the name of the legislative data group for the element. In this example 'Vision Corporation US LDG'.
    Default the legislative data group

    Click OK.

  4. Edit the Element Name attribute to define a default constant value of the element name as defined in the Elements task, in this example 'Overtime'.
    Default the element name

    Click OK.


  5. Repeat the steps above to define constant default values for the following attributes:
    Attribute Name Default Value
    Entry Type E
    Creator Type H
    Multiple Entry Count 1

  6. Edit the Effective Start Date attribute and make it required. Click OK.
    Click Required

    Note: The Effective Start Date is always required when creating new records.

  7. When your element definition has more than one input value, you'll need to duplicate the element entry value attributes. Select the Input Value Name attribute and click the Duplicate button in the Selected Attributes panel toolbar.
    Click Duplicate
  8. The Overtime element used in this tutorial has three input values, so you would need to create two duplicates. Specify a value of 2 and click OK.
    Create duplicates

    You'll see that a sequence number is appended to the duplicate attribute names, to make each name unique in the Selected Attributes panel:

    Duplicate attribute names are appended with a sequence number
  9. Edit the original Input Value Name attribute, the one without a sequence number. Change the Column Heading to identify which input value this is for. In this example, Hours.
    Update the column heading

    Note: The 'Input Value Name' attributes will be hidden before activating the spreadsheet, so this column header will not be seen in the final spreadsheet. The purpose of changing the header now is to be able to identify it in the Selected Attributes panel.

  10. Define a constant default value. Specify the name of the first input value defined on the element definition. In this example, Hours.
    Define a default value of Hours

    Click OK.

  11. Edit the original Entry Value attribute to:
    • Update the Column Heading with the input value name, Hours.
    • Optionally update the Description. The description is displayed in the spreadsheet when hovering over the column heading and is used to provide guidance on what values to supply.
    • Check the Required checkbox to ensure a value is provided in the spreadsheet.
    Click Required

    Click OK.

  12. Edit the second Input Value Name attribute (with sequence 1) to:
    • Change the Column Heading to identify the input value.
    • Specify a constant default value of the name of the second input value of the element, in this example, Multiple.
    Edit the second input value name

    Click OK.

  13. Edit the second Entry Value attribute name:
    • Update the Column Heading with the input value name, Multiple.
    • Update the Description, to explain to the end user how to entry valid values for the input value.
    • Check the Required checkbox.
    • Optionally define a default value, such as 1.5 if overtime is usually paid at time and half.
    Edit the second Entry Value attribute

    Click OK.

  14. Edit the third Input Value Name attribute using the steps above to configure this input value for Periodicity.
  15. Update the second input value name
  16. Using the steps above, configure the last Entry Value attribute for the input value 'Periodicity', defining a default ORA_DAILY.
    Edit entry value 2

    Tip: The Extending List of Values validation in HCM Spreadsheet Data Loader Spreadsheets tutorial explains how to configure a Lookup validated list of values for this attribute.

  17. Save the template, it is now time to test the attribute configuration works.

section 3Validate and Test the Template

You should be test the template configuration before simplifying and activating it.

  1. Click Validate to validate the template configuration.
    Click validate

    You should not see any errors.

    Confirmation that the template is valid

    If you do see errors, revisit the steps above.

  2. Click Preview to generate a spreadsheet for the configured template. This downloads the GenericHdlSpreasdheet.xlsx file. Open it.
  3. Click Yes when you're prompted to log in.
    Click Yes to connect

    Login with your application user and password. The spreadsheet is generated with each of the Selected Attributes in the template seen as a column in the spreadsheet.

  4. To be able to upload data with the spreadsheet you must first create a data set. Click Create Data Set on the Spreadsheet Loader toolbar.
    Click Create Data Set

    Click OK on any dialog pages displayed.

    Data set name

    Note: A data set is created with a defaulted name, you can override this if you want.

  5. Double click in any of the cells in the first row under the column headings to initiate the row.
    Validate the default values

    The attributes with defaults defined should display values in the initiated row. The attributes configured as mandatory that don't have a value will be surrounded by a red box.

    Note: The value displayed may not be the same as the value defaulted in the template. When an attribute is lookup validated, you must supply the lookup code as the default in the template. The lookup meaning is displayed in the spreadsheet.

    See the Extending List of Values validation in HCM Spreadsheet Data Loader Spreadsheets tutorial for the different ways in which a spreadsheet column can provide lists of values.

  6. Enter valid data for each of the empty cells in the row.

    Columns with the [..] symbol after the name provide a searchable list of values. Double click the cell you want to provide a value for to open the LOV window.

  7. In the Spreadsheet Loader toolbar, click More > Upload.
    Click Upload

    Click OK on any dialog pages displayed.

  8. Click Refresh regularly to refresh the spreadsheet row status.
    Click Refresh

    The Upload Progress will change status until processing completes with a Success status.

    Row successfully uploaded
  9. Use the Element Entries task to ensure the Overtime element entry was successfully created.

section 4Simplify the Template

Now that the spreadsheet is known to work you should hide attributes that the user does not need to update.

  1. If you have closed your template, you need to reopen it:
    • From the home page, click My Client Groups > Data Exchange.
    • Click Spreadsheet Templates.
    • Search for your template and click the template name.
    • Click Define.
  2. In the Selected Attributes panel, edit the Legislative Data Group attribute. Uncheck the Visible checkbox.
    Hide the attribute from the spreadsheet

    Click OK.

  3. Repeat for the following attributes:
    • Element Name
    • Entry Type
    • Creator Type
    • Multiple Entry Count
    • All 3 occurrences of Input Value Name

    You'll now see only the attributes that the user needs to supply in the spreadsheet.

    Attributes that will be seen in the generated spreadsheet
  4. Click the Reorder icon on the Selected Attributes panel toolbar.
    Click Reorder

    The Reorder Attributes dialog allows you to define the order in which the columns are displayed in the spreadsheet.

  5. Select the Assignment Number attribute and use the buttons to move it to the top of the list.
    Reorder the spreadsheet attributes

    Click OK when the attributes are in an order that is logical for data entry.

  6. Save the template and click Preview. Your generated spreadsheet will be much simpler.

section 5Assign Roles and Activate Template

In this step, you'll edit the spreadsheet template to assign which job roles can use it.

  1. Use the Spreadsheet Templates task to edit your template.
  2. Click Define.
    Click Define
  3. Under the Template Security section, confirm the Upload Data As value is 'Session user' and the Assign Roles to Template value is 'Enabled'.
    Upload data as the session user

    Note: The ability to load data as the session user is specific to each object. If the only option available is Elevated User, then data security for that object is not yet available for HSDL.

    When the template is configured to upload data as the elevated user, no data security is applied and you can't assign roles to the template.

  4. Click Role Access.
    Click Role Access
  5. On the Permitted Data Set Operations table, click the Create icon.
    Create permitted data set operations
  6. Search for and select the job roles that can use spreadsheets generated from this template, to bulk load Overtime element entries. Click Add.
    Search for and select job roles that should have spreadsheet access
  7. Specify which actions each assigned role can perform on data sets created within the generated spreadsheet. For example, can users with the job role create data sets, save changes to data sets, upload data sets and can they view all data sets, or just those they have created themselves?
    Configure the data set access for each job role

    Here the Payroll Administrator can create, save and upload data sets but only see and act on data sets they have created. Whereas, the Payroll Manager can also view and act on any data set, created by any user, with this template.

  8. Navigate to the Define page and update the template Status to Active. Save your changes.
    Activate the template

    The spreadsheet will now be available to all users with any of the roles assigned to the template.

  9. You should now re-test your spreadsheet, logging in with a user that has a job role which has data set permissions for the template.
    • When entering data in the spreadsheet, ensure that any searchable lists of values list only the records the user has the access to work with. For example, does the Assignment Number list of values only list those assignment numbers the user can create element entries for?
    • When uploading spreadsheet rows, ensure that the user can only create records for the people they have the data security to maintain.

next stepNext Tutorial

Extending List of Values validation in HCM Spreadsheet Data Loader Spreadsheets