You are viewing limited content. For full access, please sign in.

Question

Question

Formula errors - Collections - Not able to compute 1-0 =1

asked on June 9, 2022

I had a collection with number variables in it. Collection was just 1 set only. I am only concerned with the first 3 variables. 

I tried various ways to compute {current totals} = {current available}-{current timesheet}, but it error on 1-0. 

  =SUB(
    INDEX(Payroll_Use.Current_Available,1) , 
    INDEX(Payroll_Use.Current_Timesheet,1) 
    )
/******************* */

    =SUMIFS(INDEX(Payroll_Use.Current_Timesheet,1),"<>0",(
      INDEX(Payroll_Use.Current_Available,1) , 
      MINUS(INDEX(Payroll_Use.Current_Timesheet,1) ),
      INDEX(Payroll_Use.Current_Available,1) 
      )
/******************* */
      =IF(INDEX(Payroll_Use.Current_Timesheet,1) <> 0,
      SUB(
          INDEX(Payroll_Use.Current_Available,1) , 
          INDEX(Payroll_Use.Current_Timesheet,1) 
          ),
      INDEX(Payroll_Use.Current_Available,1)
      )
/******************* */
=IF(INDEX(Payroll_Use.Current_Timesheet,1) = 0,
  
  INDEX(Payroll_Use.Current_Available,1),
  SUB(
    INDEX(Payroll_Use.Current_Available,1) , 
    INDEX(Payroll_Use.Current_Timesheet,1) 
    )
  )

In the end I had to move the variables out of the collection and then the formulas worked just fine. 

Anyone else having issues with formulas inside collections?

1 0

Replies

replied on June 9, 2022

Are you using new form designer? There is a known bug for new form designer when calculate within table/collection when the variable value is 0.

1 0
replied on June 10, 2022

Yes I am.

0 0
replied on June 14, 2022

There is an available hotfix for this issue, you can open a support case with your solution provider and request the hotfix, the bug ID is 379827.

0 0
replied on January 9, 2023

This bug has been fixed with Forms 11 Update 3.

  • Calculation in table/collection no longer have issues at page load. (379827)

You can see other changes of Forms 11 Update 3 from  https://support.laserfiche.com/kb/1014413/list-of-changes-for-laserfiche-forms-11-update-3 and get Forms 11 Update 3 from Laserfiche 11 package  https://support.laserfiche.com/kb/1014263/software-versions-and-fixes-included-in-the-laserfiche-11-download-package

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.