Skip to main content
Nintex Community Menu Bar
Solved

Calculated field inside repeating section turns to 0 in edit mode

  • January 11, 2021
  • 5 replies
  • 132 views
  • Translate

Forum|alt.badge.img+4

I am trying to calculate sum of amount field which is inside repeating section. Formula used to calculate sum is sum(Amount). When I open the form in edit mode, the calculated field turns to 0 (see snapshot below). To update the amount, i have click either inside amount field or add new row.

Gone through lot of articles but none of them helped. All of them pointed to Nintex version issue but i have Nintex version being used in 3.3.1.0

9841i44B9F950ABB506F8.png

 

Best answer by AmanG

I found the solution by back tracking.

The repeating section is placed inside panel and that panel has rule applied to it based on lookup value. Since there are lot of values, lookup is taking time to resolve and in the mean time sum is calculated as ZERO. I removed that rule from panel and now it is working fine, sum is getting re calculated. 

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+4
  • Author
  • Rookie
  • 11 replies
  • January 12, 2021

@MegaJerk Hi Meg, could you help me please as in the past also your solutions and suggestions have helped me.

Translate

MegaJerk
Forum|alt.badge.img+14
  • Scholar
  • 834 replies
  • January 25, 2021

I would need to see the Formula inside of your calculated control. It should be pretty straight forward though. 

Here is an example form (only pay attention to the controls that are highlighted in yellow): 


I have one Control named (someNumber) in the Repeating Section and a Calculated Control named (totalControl) just on the Form outside of the Repeating Section. 

 

Here is how the Single Line Text (someNumber) is configured:

 

 

Here is the formula in the Calculated Control: 

 

Running the form in Edit mode it behaves like one would expect. 

 

there are no other rules running, no other code. just the calculated formula. please copy this style and get back to me. 

 

 

Translate

Forum|alt.badge.img+4
  • Author
  • Rookie
  • 11 replies
  • January 27, 2021
Hi Meg, Thanks for taking out time for this. I agree with your solution and even I am not able replicate the issue in test site. It's working as expected in test site but not in production. I have JavaScript and workflows running in backend so really not sure what is causing the sum to be zero.
Translate

Forum|alt.badge.img+4
  • Author
  • Rookie
  • 11 replies
  • Answer
  • January 27, 2021

I found the solution by back tracking.

The repeating section is placed inside panel and that panel has rule applied to it based on lookup value. Since there are lot of values, lookup is taking time to resolve and in the mean time sum is calculated as ZERO. I removed that rule from panel and now it is working fine, sum is getting re calculated. 

Translate

MegaJerk
Forum|alt.badge.img+14
  • Scholar
  • 834 replies
  • January 27, 2021

Good to hear! Sometimes all it takes is another more detailed look. We've all been there and made that mistake. 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings