'Count Data' label contains an expression not evaluating correctly in an Advanced condition

  • 15 February 2022
  • 0 replies
  • 21 views

Userlevel 5
Badge +20
 

'Count Data' label containing an expression not evaluating correctly in an Advanced condition

kbt154990

PRODUCT
K2 Five
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

When you use Count Aggregation in a list view to get the number of list items, the Count data label will display the number of items in the list view at Runtime. But using the Count data label in a condition, will not evaluate correctly.

Symptoms

When using the Count Data Label in an advanced condition IF (Count data label = 0), this condition becomes true even if there are items existing in the list view.

Troubleshooting Steps

When the view is initializing, the Count data label doesn't contain a value which will make the IF condition true, and it is all about rule timing.

Use Count Expression instead of the Count data label in the Advanced Condition. It will evaluate the advanced condition correctly.


0 replies

Be the first to reply!

Reply