Dropdown Menu auto-populates values into other attribute fields.

book

Article ID: 48725

calendar_today

Updated On:

Products

DIRECTORY CA Identity Manager CA Identity Governance CA Identity Portal CA Risk Analytics CA Secure Cloud SaaS - Arcot A-OK (WebFort) CLOUDMINDER ADVANCED AUTHENTICATION CA Secure Cloud SaaS - Advanced Authentication CA Secure Cloud SaaS - Identity Management CA Secure Cloud SaaS - Single Sign On SECURITY MISC CODES SINGLE SIGN ON - LEGACY CA Data Protection (DataMinder) CA User Activity Reporting

Issue/Introduction

Description:

When using the Dropdown Combo style attribute with validation java script to set other screen attributes according to the dropdown selection, the Dropdown Menu auto-populates values into other attribute fields.

The problem occurs when:

  • You configure the dropdown attribute ABOVE the other attributes and select an available value, the other attributes will NOT update according to the selection.

The problem does not occur when:

  • You configure the dropdown attribute BELOW the other attributes and select a value, they will change according the selection.

Sample Reproduction of the problem:

  1. Use the "Modify Group Task"
  2. Modify the "Modify Group Task"
  3. Click on TABS
  4. Expand Profile
  5. Browse to and select the correct Search Screen(as setup with the attached test XML).
  6. Edit the selected Search Screen
  7. Expand the Attribute that will contain the dropdown selector
  8. Set the Style to "Dropdown Combo"
  9. Set "Source Of Selection" to Simple Text
  10. Add One, Two, Three to the "Selection Options"
  11. Copy in the Validation Java Script (attached)
  12. Validate On change = Yes
  13. Move the Dropdown Attribute to the top of the attribute list
  14. Save and submit the changes to the task
  15. Access the Modify Group Task
  16. Using the Dropdown Menu on the attribute does not auto populate the value(s) into all of the other attribute fields.
    IF the dropdown attribute is moved BELOW the standard attributes on the Profile Screen, using the Dropdown Menu will auto-populate the value(s) into the other attribute fields.

Solution:

Work around:

  1. On the 'Title' attribute field:

    • Setup the Drop Down box
    • Set 'Validate On Change' to YES


  2. On the 'Department' attribute field:

    • Add the following Java Script to the 'Validation JavaScript' box

      function validate(FieldContext, attributeValue, changedValue, errorMessage)
      {
      changedValue.reference = FieldContext.getFieldValue("title");
      return true;
      }

  3. Apply all changes and submit the Task.
    At that point 'Department' field will be auto-populated with the value from the 'Title' field when the 'Title' field is set using the Drop Down option.

NOTE:

IF you have a shared Corp and Prov Store(Corp=Prov) you will need to use the following Java Script:

function validate(FieldContext, attributeValue, changedValue, errorMessage)
{
changedValue.reference = FieldContext.getFieldValue("eTTitle");
return true;
}

Environment

Release:
Component: IDMGR