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

          bobhurt Bob Hurt (Inactive) created issue -
          masargen Matt Sargent made changes -
          Field Original Value New Value
          Documentation Review Status Pending Review [ 14643 ] Not Required [ 14642 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.3 [ 16595 ]
          Fix Version/s 2.3-backlog [ 16596 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.3 [ 16595 ]
          jkneal Jerry Neal (Inactive) made changes -
          Fix Version/s 2.3 [ 16595 ]
          Fix Version/s 2.3.0-m3 [ 16758 ]
          Fix Version/s 2.3-backlog [ 16596 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.3.0-m3 [ 16758 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.4 [ 16913 ]
          Fix Version/s 2.3 [ 16595 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.4-backlog [ 16596 ]
          Fix Version/s 2.4 [ 16913 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow custom [ 163395 ] Copy of custom for rice [ 207782 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow Copy of custom for rice [ 207782 ] custom [ 217530 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow custom [ 217530 ] Rice Workflow [ 227278 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.4 [ 16913 ]
          Fix Version/s 2.4-backlog [ 16596 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s Backlog [ 15811 ]
          Fix Version/s 2.4 [ 16913 ]
          ewestfal Eric Westfall made changes -
          Labels Old

            People

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

              Dates

              • Created:
                Updated: