Searching across repeater rows for a value (in the condition builder)

Hi!

This can be done using the “listener method.” Here is how the listener method works:

  • Execute a command (Move by 0,0 is traditional) on a widget in the repeater. This item is the listener. Note that this command must be initiated from outside of the repeater.
  • When this happens, the listener will receive the OnMove message for each row instance of the repeater in the context of each row instance.

“In the context of” means that the listener’s OnMove code will have access to all of the row instance’s properties. It can examine [[Item.columnName]], [[Item.index]], etc., the same way as OnItemLoad does. In fact, when writing the OnMove code for a listener, write it the exact same way you would write an OnItemLoad handler. Think of the listener as a highly targeted OnItemLoad designed to perform a specific task.

A nice benefit of the listener is that it doesn’t write to the dataset (unless its code specifically does so).

Attached is an example with comments. The hotspot in the row is the listener.

find_val_with_listener.rp (55.4 KB)

1 Like