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

dataTables problem with subCollection in a TableCollectionSection

    Details

    • Type: Bug Fix
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      UIF Component
    • Application Requirement:
      KS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      I have a very simple Uif-TableCollectionSection bean, defined as:

      <bean parent="Uif-TableCollectionSection">
          <property name="propertyName" value="collection"/>
          <property name="collectionObjectClass" value=".."/>
          <property name="layoutManager.renderSequenceField" value="false"/>
          <property name="items">
              <list>
                  <bean parent="Uif-DataField" 
                        p:propertyName="name" p:label="Name"/>
                  <bean parent="Uif-DataField" 
                        p:propertyName="description" p:label="Description"/>
                  <bean parent="Uif-DataField" 
                        p:propertyName="id" p:label="ID"/>
              </list>
          </property>
          <property name="subCollections">
              <list>
                  <bean parent="Uif-TableSubCollection-WithinSubSection">
                      <property name="propertyName" value="list1" />
                      <property name="collectionObjectClass" value=".." />
                      <property name="layoutManager.renderSequenceField" value="false" />
                      <property name="items">
                          <list>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field1" p:label="FIELD1"/>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field2" p:label="FIELD2"/>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field3" p:label="FIELD3"/>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field4" p:label="FIELD4"/>
                          </list>
                      </property>
                  </bean>
              </list>
          </property>
      </bean>
      

      This displays the collection and subcollection but throws a javascript error:

      TypeError: nCell is undefined
      http://localhost:8081/ks-with-rice-bundled-dev/krad/plugins/rice/datatables/jquery.dataTables.js
      628

      If I add the property layoutManager.richTable.render="false" to the TableCollectionSection, the javascript error goes away. It appears that when I add a subcollection, it breaks the dataTable plugin.

        Attachments

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              bobhurt Bob Hurt (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: