I would like to update all the values in one column of the dataset, coming from the template parameters of the Template Repeater.
Using setValue() returns a new dataset each time. So, how can I change all the values at once, then push that back to the Repeater's template params? Do I need to convert to a list or dict and back to dataset?
The trick is to create a new list of values in one operation, then use our system functions to slice off the old column and drop in a new one. See this thread for a possible approach:
I will give that a try. @nideyijuyidong
Since the PyRow is not aware of it's own row index number, and using range() to loop through the dataset does not provide a list of row data (for a singled out row), I had to look for another option.
@lrose I had a hunch it might involve `enumerate(). I appreciate the "contrived example"!