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 Task
    • Status: Closed Closed
    • Priority: Major 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
    • Similar issues:
      KULRICE-9916Do checkbox conversion in LookupInputField only when specified through attribute definition
      KULRICE-7583Add support to KRAD attribute field framework for RemotableSelectField.refreshOnChange
      KULRICE-10121Attribute Definition: Conversion Script
      KULRICE-4279Better support for conditional hidden, required, read-only, and valid values on lookup and maintenance screens
      KULRICE-4733Improve key values finder support
      KULRICE-2124Add functionality for custom evaluation via default widgets templates [eDocLite]
      KULRICE-3405Add support for injecting a values finder object into ControlDefinition
      KULRICE-5794Default values not working!
      KULRICE-3072Allow maintenance documents to copy PK fields
      KULRICE-11891Default Values not being applied on Input and Data Fields
    • 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.

        Activity

        Hide
        Jill Yetman (Inactive) added a comment -

        Priority for UW MyPlan

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

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

        Show
        Jessica Coltrin (Inactive) added a comment - updating fix version since they are needed by My Plan for m2
        Hide
        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
        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 (Inactive)
            Reporter:
            Jerry Neal (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel