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

Looks like there is a bug in the KNS framework with nested collections and externalizable business objects.

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: KFS Release 4, 1.0.3.1
    • Component/s: Development
    • Labels:
      None
    • Similar issues:
      KULRICE-6045Add coverage of Externalizable Business Objects to Rice docs
      KULRICE-4736Support for dynamic business objects
      KULRICE-2293Externalizable Business Object lookups do not limit at the given maximum
      KULRICE-2627make document type an externalizable business object and if it's gonna keep active on it, make it implement inactivatable
      KULRICE-2154externalizable business object work causing null pointer
      KULRICE-2629make document search an externalizable business object
      KULRICE-9795Convert the PersistableAttachment framework for KRAD
      KULRICE-3716Create a "Business Object Observer" framework
      KULRICE-8034Business object validation is validating reference objects when it should not
      KULRICE-4264Add hook to access new collection line BO in Maint Doc Framework
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      From the Collab List:

      Unfortunately, it looks like you may have come across a bug in the KNS framework with nested collections and externalizable business objects. All those are built dynamically by the code in FieldBridge and SectionBridge.

      On Fri, Sep 17, 2010 at 10:00 AM, Kevin McOmber <kevinmco@arizona.edu> wrote:
      Howdy

      I am working on trying to fix https://jira.kuali.org/browse/KFSMI-5333. We have added other fields to the same inquiry section that is acting just like Asset Representative Principal Name does. Can someone tell me what I need to change so that each Asset Representative Principal Name lookup will have a distinct index instead of the same one for all? Currently all Asset Representative Principal Name lookups have the following index for every Asset Unique Information section. This was taken from firebug:

      <input id=
      "document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[0].assetRepresentative.principalName" type="text" onblur="loadUserInfo( 'document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[0].assetRepresentative.principalName', 'document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[0].representativeUniversalIdentifier', 'document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[0].assetRepresentative.name' );" style="" maxlength="40" size="10" title="Principal Name" value="" name="document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[0].assetRepresentative.principalName"/>

      If there are three Assets then they should be:

      document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[0].assetRepresentative.principalName
      document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[1].assetRepresentative.principalName
      document.newMaintainableObject.assetSharedDetails[0].assetGlobalUniqueDetails[2].assetRepresentative.principalName

      Where is this controlled and where do I change this?

        Issue Links

          Activity

          Hide
          kevin mcomber (Inactive) added a comment -

          Did some debugging and it looks like it is in:

          if (fieldDefinition instanceof MaintainableFieldDefinition)

          { MaintenanceUtils.setFieldQuickfinder(lineSubBusinessObject, subCollectionFullName, false, i, name, subCollField, displayedFieldNames, m, (MaintainableFieldDefinition) fieldDefinition); MaintenanceUtils.setFieldDirectInquiry(lineSubBusinessObject, subCollectionFullName, false, i, name, subCollField, displayedFieldNames, m, (MaintainableFieldDefinition) fieldDefinition); }

          else

          { LookupUtils.setFieldQuickfinder(lineSubBusinessObject, subCollectionFullName, false, i, name, subCollField, displayedFieldNames); LookupUtils.setFieldDirectInquiry(lineBusinessObject, name, subCollField); }

          which based on my debugging should send in the variable "j" instead of the variable "i".

          Show
          kevin mcomber (Inactive) added a comment - Did some debugging and it looks like it is in: if (fieldDefinition instanceof MaintainableFieldDefinition) { MaintenanceUtils.setFieldQuickfinder(lineSubBusinessObject, subCollectionFullName, false, i, name, subCollField, displayedFieldNames, m, (MaintainableFieldDefinition) fieldDefinition); MaintenanceUtils.setFieldDirectInquiry(lineSubBusinessObject, subCollectionFullName, false, i, name, subCollField, displayedFieldNames, m, (MaintainableFieldDefinition) fieldDefinition); } else { LookupUtils.setFieldQuickfinder(lineSubBusinessObject, subCollectionFullName, false, i, name, subCollField, displayedFieldNames); LookupUtils.setFieldDirectInquiry(lineBusinessObject, name, subCollField); } which based on my debugging should send in the variable "j" instead of the variable "i".
          Hide
          Eric Westfall added a comment -

          Setting fix version as "1.0.3?" because it looks like the linked KFSMI for this is set at "Release ?"

          Show
          Eric Westfall added a comment - Setting fix version as "1.0.3?" because it looks like the linked KFSMI for this is set at "Release ?"
          Hide
          Jessica Coltrin (Inactive) added a comment -

          William, please see if you can reproduce and then discuss with Peter.

          Show
          Jessica Coltrin (Inactive) added a comment - William, please see if you can reproduce and then discuss with Peter.
          Hide
          William Balderamos (Inactive) added a comment -

          See revision #14933.

          Show
          William Balderamos (Inactive) added a comment - See revision #14933.
          Hide
          Jessica Coltrin (Inactive) added a comment -

          closing since 1.0.3.1 is released.

          Show
          Jessica Coltrin (Inactive) added a comment - closing since 1.0.3.1 is released.

            People

            • Assignee:
              William Balderamos (Inactive)
              Reporter:
              Kymber Horn
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel