Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-6860

Add support for specifying multiple default values for an attribute definition or field

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-m2, 2.2
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • Application Requirement:
      KS, KS My Plan
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Currently on the DD attribute definition and UIF input field a single default value can be defined. However there is not support for configuring more than one default value (for multi-value controls or types such as List<String>).

      One approach is to change the defaultValue to a List, and change the signature of default value finders. Then have a convenience for setting a single default value.

        Attachments

          Activity

          Hide
          jyetman Jill Yetman (Inactive) added a comment -

          Priority for UW MyPlan

          Show
          jyetman Jill Yetman (Inactive) added a comment - Priority for UW MyPlan
          Hide
          jcoltrin Jessica Coltrin (Inactive) added a comment -

          updating fix version since they are needed by My Plan for m2

          Show
          jcoltrin Jessica Coltrin (Inactive) added a comment - updating fix version since they are needed by My Plan for m2
          Hide
          jkneal Jerry Neal (Inactive) added a comment -

          Matt,

          We need to add a property called defaultValues of type Object[] to AttributeDefinition and DataField. When this is set instead of the Object defaultValue property, set as the value of the field (where we are setting the defaultValue property). We will assume when set the property supports an array (if not ObjectPropertyUtils will throw an exception ).

          Please write test cases for both properties as well (standard junit tests).

          Jerry

          Show
          jkneal Jerry Neal (Inactive) added a comment - Matt, We need to add a property called defaultValues of type Object[] to AttributeDefinition and DataField. When this is set instead of the Object defaultValue property, set as the value of the field (where we are setting the defaultValue property). We will assume when set the property supports an array (if not ObjectPropertyUtils will throw an exception ). Please write test cases for both properties as well (standard junit tests). Jerry

            People

            • Assignee:
              matthew.wuertz Matthew Wuertz (Inactive)
              Reporter:
              jkneal Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: