I’m using a Flex Repeater to display good, rework, and scrap quantities.
Based on the values entered, the system prompts for additional data such as scrap codes and rework codes.
I have on‑change scripts on these three fields, and when multiple work orders are present, the client starts flickering because the on‑change script keeps executing continuously.
Because of this continuous execution, the data bindings are also picking up incorrect values.
I am binding the quantity to the numeric field based on whether it is good, scrap, or rework. For every row script is executing 3 times.
You need to not do it on each field that could change if they need to enter more than one field of info before the refresh.
Give them a button to push to do the refresh on-demand. You could even make it appear when they've got "valid" values in the fields to help enforce appropriate timing.
In addition to Ted's advice, you should also be checking the origin of the event, and ignoring changes that aren't coming from the user (via the browser).