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

Freemarker error with column calculation and submit of maintenance document

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-9047Term maintenance freemarker exception
      KULRICE-13208AFT Failure DemoTravelAuthorizationPessimisticLockingAft.testPessimisticLockingUnlockingOnDisapprove freemarker exception
      KULRICE-5781NotSerializableException on save/submit of a Maintenance document
      KULRICE-8721County maintenance document, submit without entering info and get errors - worded incorrectly, "code" should be spelled out.
      KULRICE-10679Check freemarker fix in trunk
      KULRICE-8093Horizontal scrolling for maintenance documents with errors listed
      KULRICE-10345Required * does not appear on left descriptor column in maintenance documents
      KULRICE-6451Can not create KNS maintenance documents
      KULRICE-9643Maintenance document still editable after submit
      KULRICE-4458Submitting Person document throws DB error
    • 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>

        Issue Links

          Activity

          Hide
          Ying Zhou (Inactive) added a comment -

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

          Show
          Ying Zhou (Inactive) added a comment - It's working for our maint doc now. Thanks for fixing it!

            People

            • Assignee:
              Jerry Neal (Inactive)
              Reporter:
              Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel