Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-9658

attributeQuery does not set value correctly for radio/checkbox controls

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-9614Dialogs not correctly returning to controller method
      KULRICE-12516Currency Spinner doesn't update correctly after manually entering a value
      KULRICE-11892Spinner Control for currency not starting on the correct start value
      KULRICE-8126Collection control does not honor disable if disable is disabled by an expression for collection refresh
      KULRICE-5355Lookup - return values opens new tab, the return target is not set
      KULRICE-13121Setting the disabled property on a ConcreteKeyValue in a KeyValuesFinder class does not disable that option in a drop down control
      KULRICE-4118Checkbox Controls associated with Kim attributes are not displaying correctly
      KULRICE-10305Lookup: Set default values on "clear values"
      KULRICE-7698StateConstraintOverrides does not always return the correct value when trying to get the applicable constraint
      KULRICE-8804Uppercase implementation does not uppercase values
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      Data Dictionary
    • Application Requirement:
      KPME
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      We are trying to use attributeQuery to populate some fields on our maintenance document from tabbing off one field. This field has a quickfinder control for lookup too.
      When we put a value in and tab off "pmPositionClassId" field, all
      RadioControl fields that are supposed to be populated from tabbing off are not populated and showing "required" errors. All TextControl fields get populated correctly. I stepped into AttributeQueryServiceImpl and saw the right values were returned for those RadioControl fields, in our case "Y"
      for Yes option. The lookup action returns and populates all the fields correctly though. This is not working for checkBox controls either.

      Here's the bean definition of the tabbed off field, "pmPositionClassId.
      "tenureEligible" is the RadioControl field.

      <bean parent="Uif-InputField" p:propertyName="pmPositionClassId" >
      <property name="quickfinder.dataObjectClassName"
      value="org.kuali.hr.pm.classification.Classification" />
      <property name="quickfinder.fieldConversions">
      <map>
      <entry key="pmPositionClassId" value="pmPositionClassId" />
      <entry key="classificationTitle" value="classificationTitle" />
      <entry key="classificationTitle" value="workingPositionTitle" />
      <entry key="tenureEligible" value="tenureEligible" />
      </map>
      </property>
      <property name="attributeQuery">
      <bean parent="Uif-AttributeQueryConfig"
      p:dataObjectClassName="org.kuali.hr.pm.classification.Classification"
      p:queryFieldMapping="pmPositionClassId:pmPositionClassId"
      p:returnFieldMapping="classificationTitle:classificationTitle,
      classificationTitle:workingPositionTitle,
      tenureEligible:tenureEligible"/>
      </property>
      </bean>

      ========= Here's the bean for the RadioControl field ==============

      <bean id="Position-tenureEligible"
      parent="Position-tenureEligible-parentBean"/>
      <bean id="Position-tenureEligible-parentBean" abstract="true"
      parent="AttributeDefinition">
      <property name="controlField">
      <bean parent="Uif-HorizontalRadioControl">
      <property name="options">
      <list>
      <bean parent="Uif- KeyLabelPair"
      p:key="Y" p:value="Yes"/>
      <bean parent="Uif- KeyLabelPair"
      p:key="N" p:value="No"/>
      </list>
      </property>
      </bean>
      </property>
      <property name="name" value="tenureEligible" />
      <property name="label" value="Tenure Eligible" />
      </bean>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Brian Smith (Inactive)
            Reporter:
            Ying Zhou (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel