Number of marked items in a repeater?

Hi folks - I thought I came across a really really quick way to access the number of marked items in a repeater. I want to compare the number of marked items to the total number of rows. Any help appreciated - Cheers! MG

1 Like


I know only two ways. Both assume a repeater that is not “paged.”

-- count it during the OnItemLoad process, assuming you know it will run
  if [[Item.isFirst]]
      set v_counter to 0
   if [[Item.isMarked]]
     set v_counter to [[v_counter + 1]]

-- filter, then count
Add Filter [[Item.isMarked == true]] to repeater
Set text of shape "numMarkedRows" to [[LVAR_repeater.itemCount]]