[KULRICE-9477] Freemarker error with column calculation and submit of maintenance document Created: 13/May/13  Updated: 12/Aug/13  Resolved: 23/Jul/13

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

Type: Bug Fix Priority: Critical
Reporter: Jerry Neal (Inactive) Assignee: Jerry Neal (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File 2013-05-10 14_50_05-Kuali Portal Index.jpg     JPEG File 2013-05-10 14_51_47-Kuali Portal Index.jpg     XML File Classification.xml    
Issue Links:
Cloners
cloned from KULRICE-7208 Template Closed
Rely
is relied upon by KPME-2278 Duties Section Closed
is relied upon by KPME-2307 Duties Section Closed
Rice Module:
KRAD
KRAD Feature Area:
Maintenance
Application Requirement:
KPME
KAI Review Status: Not Required
KTI Review Status: Not Required

 Description   

Hi Jerry,
I have attached the maint doc.xml and two screen shots showing how the document and error look.
The error happens on bean "Classification-duties". In my document, "Duties" is one of the tabs in a TabGroup.The sum calculation is on field "percentage".
After I added an entry to Duties and saved the file, everything got saved successfully, only the rendering of the page throws an error. Please look at the screen shot for more details.
Thank you so much for looking into this issue!
Ying

----Original Message----
From: Jerry Neal jkneal@indiana.edu
Sent: Friday, May 10, 2013 2:36 PM
To: Zhou, Ying [ITUIS]; 'Ying Zhou'; 'Rice KRAD User Group'
Subject: RE: [kuali] Uif-ColumnCalculationInfo-Sum

Ying,

Can you send us your configuration for the entire maintenance document?
And also detail the steps you took to get the exception. I am going to try and recreate this.

Thanks,
Jerry

----Original Message----
From: Zhou, Ying [ITUIS] yingzhou@iastate.edu
Sent: Friday, May 10, 2013 10:07 AM
To: Jerry Neal; 'Ying Zhou'; 'Rice KRAD User Group'
Subject: RE: [kuali] Uif-ColumnCalculationInfo-Sum

Hi Jerry,
Thanks for pointing me to the right direction. I was able to get rid of some rich table fields using layoutManager.richTable.templateOptions .

Now the sum calculation is causing another issue. I'm using "Uif-TableCollectionSection" to add a collection of objects to a maintenance document.
When the document is submitted, the bo and the collection are saved successfully. The page came back with a rendering issue though. It complains that uif_fieldGroup was not found. That comes from fieldGroup.ftl.
Any idea what might be causing this? This issue only happens when I use "Uif-ColumnCalculationInfo-Sum". Below is the stack trace.
Thanks!
Ying

on line 1, column 1 in
krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted$anonymous_interpreted
.main.uif_fieldGroup not found.
The problematic instruction:
----------
==> user-directive .main.uif_fieldGroup [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted$anonymous_interpreted]
in user-directive macroInvoke [on line 43, column 13 in krad/WEB-INF/ftl/lib/template.ftl]
in user-directive krad.template [on line 69, column 29 in krad/WEB-INF/ftl/layout/table.ftl]
in user-directive uif_table [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted]
in user-directive macroInvoke [on line 40, column 9 in krad/WEB-INF/ftl/components/group/collectionGroup.ftl]
in user-directive div [on line 20, column 5 in krad/WEB-INF/ftl/lib/groupWrap.ftl]
in user-directive krad.groupWrap [on line 20, column 5 in krad/WEB-INF/ftl/components/group/collectionGroup.ftl]
in user-directive .main.uif_collectionGroup [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted$anonymous_interpreted]
in user-directive macroInvoke [on line 43, column 13 in krad/WEB-INF/ftl/lib/template.ftl]
in user-directive krad.template [on line 40, column 12 in krad/WEB-INF/ftl/layout/box.ftl] in user-directive uif_box [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted]
in user-directive macroInvoke [on line 29, column 9 in krad/WEB-INF/ftl/components/group/group.ftl]
in user-directive div [on line 20, column 5 in krad/WEB-INF/ftl/lib/groupWrap.ftl]
in user-directive krad.groupWrap [on line 20, column 5 in krad/WEB-INF/ftl/components/group/group.ftl]
in user-directive .main.uif_group [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted]
in user-directive macroInvoke [on line 43, column 13 in krad/WEB-INF/ftl/lib/template.ftl]
in user-directive krad.template [on line 35, column 21 in krad/WEB-INF/ftl/components/group/tabGroup.ftl]
in user-directive div [on line 20, column 5 in krad/WEB-INF/ftl/lib/groupWrap.ftl]
in user-directive krad.groupWrap [on line 20, column 5 in krad/WEB-INF/ftl/components/group/tabGroup.ftl]
in user-directive .main.uif_tabGroup [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted$anonymous_interpreted]
in user-directive macroInvoke [on line 43, column 13 in krad/WEB-INF/ftl/lib/template.ftl]
in user-directive krad.template [on line 40, column 12 in krad/WEB-INF/ftl/layout/box.ftl] in user-directive uif_box [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted]
in user-directive macroInvoke [on line 29, column 9 in krad/WEB-INF/ftl/components/group/group.ftl]
in user-directive div [on line 20, column 5 in krad/WEB-INF/ftl/lib/groupWrap.ftl]
in user-directive krad.groupWrap [on line 20, column 5 in krad/WEB-INF/ftl/components/group/group.ftl]
in user-directive uif_group [on line 21, column 5 in krad/WEB-INF/ftl/components/group/pageGroup.ftl]
in user-directive .main.uif_pageGroup [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted]
in user-directive macroInvoke [on line 43, column 13 in krad/WEB-INF/ftl/lib/template.ftl]
in user-directive krad.template [on line 41, column 17 in krad/WEB-INF/ftl/components/view/view.ftl]
in user-directive krad.div [on line 21, column 5 in krad/WEB-INF/ftl/components/view/view.ftl]
in user-directive .main.uif_view [on line 1, column 1 in krad/WEB-INF/ftl/uifRender.ftl$anonymous_interpreted]
in user-directive macroInvoke [on line 43, column 13 in krad/WEB-INF/ftl/lib/template.ftl]
in user-directive krad.template [on line 45, column 13 in krad/WEB-INF/ftl/fullView.ftl] in user-directive krad.form [on line 28, column 9 in krad/WEB-INF/ftl/fullView.ftl] in user-directive krad.html [on line 18, column 1 in krad/WEB-INF/ftl/fullView.ftl] in include "fullView.ftl" [on line 70, column 9 in krad/WEB-INF/ftl/uifRender.ftl]
----------

----Original Message----
From: Jerry Neal jkneal@indiana.edu
Sent: Thursday, May 09, 2013 11:06 AM
To: 'Ying Zhou'; 'Rice KRAD User Group'
Subject: RE: [kuali] Uif-ColumnCalculationInfo-Sum

Hi Ying,

Yes I believe so because we use data tables to do grouping, add the footer and so forth. A couple of notes though, the rich table should already be set to render in Uif-TableCollectionSection. Also, if there are features of the rich table you don't want (like sorting, paging, etc). you can turn them off through the templateOptions property of richTable. Consult the data tables plugin documentation for valid options.

Jerry

----Original Message----
From: Ying Zhou yingzhou@kuali.org
Sent: Thursday, May 09, 2013 11:30 AM
To: Rice KRAD User Group
Subject: [kuali] Uif-ColumnCalculationInfo-Sum

Hi,
We are on Rice 2.2.3. I'm trying to use "Uif-ColumnCalculationInfo- Sum" in a TableCollection. The only way I can make the sum show up is to set "layoutManager.richTable.render" to true. Is Sum calculation only for rich table rendering? Here's the xml.

<bean parent="Uif-TableCollectionSection" p:align="left">
<property name="collectionObjectClass"
value="org.kuali.hr.pm.classification.ClassificationDuty" />
<property name="propertyName" value="dutyList" />
<property name="addLinePlacement" value="BOTTOM" />
<property name="layoutManager.generateAutoSequence" value="true" />
<property name="layoutManager.richTable.render" value="true" />
<property name="layoutManager.numberOfColumns" value="4" />
<property name="layoutManager.columnCalculations">
<list>
<bean parent="Uif-ColumnCalculationInfo-Sum"
p:propertyName="percentage"
p:showGroupTotal="true"
p:showPageTotal="false" />
</list>
</property>



 Comments   
Comment by Ying Zhou (Inactive) [ 25/Jul/13 ]

It's working for our maint doc now. Thanks for fixing it!

Generated at Fri Mar 05 04:37:48 CST 2021 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.