Iterating a dataview-condition causes duplicate evaluation

I have a grid of rows and a button that should process the rows based on if a user input data in one of the columns. This iteration works (technically). All of the rows are evaluated and if the column in the row being evaluated has got a value then fire a function with the data from that row. However, for some reason, it is firing twice on the first row evaluated as true, but the subsequent row(s) it only fires once (as it should).

Any idea why the first time fires twice? I tried adding an event-complete thinking maybe I needed something to complete the event, but that didn’t work.

It looks like you’re triggering udLinkJobToOrder both from the dataview condition and from the button click. Your button click is firing both events, and then the iterative event is triggering udLinkJobToOrder again.

what @kve said. Your event udLinkJobToOrder should have no trigger.

That was it! Thank you! Now after removing that for some reason the button event fires again (which is shouldn’t) but all rows have been processed so it doesn’t do anything. I guess I could live with that.

Ok, I can’t ignore the issue now. I’m trying to update something else and I created a new event using the same structure as the one above and the onclick event is firing twice.

Does anyone know why this could happen?