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

attributeQuery does not set value correctly for radio/checkbox controls

    Details

    • Type: Task
    • Status: Closed
    • Priority: 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
    • 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>

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: