[KULRICE-8920] dataTables problem with subCollection in a TableCollectionSection Created: 05/Feb/13  Updated: 16/Jan/15

Status: Open
Project: Kuali Rice Development
Component/s: Development
Affects Version/s: None
Fix Version/s: Backlog
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Major
Reporter: Bob Hurt (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Old
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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.



 Comments   
Comment by Jessica Coltrin (Inactive) [ 03/Apr/13 ]

Hey Bob, if this is important to KS to get into the next milestone, please talk to Larry about increasing the priority to Critical and assign back to me. Otherwise, we'll keep it in the backlog.

Comment by Bob Hurt (Inactive) [ 21/May/13 ]

It's not a priority. I ran across it building an example, which never made it into the KS Kitchen Sink anyway. I did a search for "Uif-TableSubCollection-WithinSubSection" and it's not used in KS at all.

Comment by Jessica Coltrin (Inactive) [ 18/Jun/13 ]

removing m3 fix version since these aren't assigned and will not be done by Monday's m3 release.

Generated at Sun Mar 07 15:30:00 CST 2021 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.