Selected Row in Repeater Question

repeater-widget

#1

I’ve got a bit of a riddle here. I have a repeater widget with a select row behaviour, I’m trying to understand why the first example does not work.

Axshare demo - https://texd1u.axshare.com/

Example 1 Button pseudocode -
Edit Row Data Action > Set value to " " where Item.Selected equals “Yes”
Edit Row Data Action > Set value to “Yes” for This row.

Example 2 Button pseudocode -
Edit Row Data Action > Set value to " " where 1 equals 1 (always true, will run on all rows)
Edit Row Data Action > Set value to “Yes” for This row.

Example 1 does not work, it requires 2 clicks to mark one row as selected. Example 2 works.

I’m aware that I can also replace the first action with Mark All Rows, Edit Row Data for Marked Rows, Unmark All Rows. I generally avoid Mark Rows if I can just use a rule, but I’m just trying to understand the “Why” of it all.

My RP file is attached: Selected Row Logic Riddle.rp (130.5 KB)