Getting a Save button to commit changes to the tag value of instances and have the changes be directed and update an SQL query

I am working on a project and i have a bunch of line stations. Each station has its own instance in a flex repeater. I have a takt-time configuration view made with all the stations. there are 2 Machine lines and 3 different models. You can select from a dynamic dropdown to see the stations from the line you're looking for. I have created a popup that opens when you hit a the save button on the screen to have the takt-time values change. The popup asks if you're sure if you want to save the new takt-time for all the stations that you changed. I am having difficulty getting the save button component to actually make the change to the instances of the repeaters. I have all my custom properties and params. I assume I need to do some scripting but I'm not sure. I also need that when the changes are made that the new values write to a MSSQL Database query to update the database. How do I do this? I know this is probably easy but I am fairly new to ignition

I think a little more detail on the architecture is needed. How are you generating your flex repeater instances: from a query, script, or manually...

What exactly is the save button doing currently? Share the script.

Break up long text into paragraphs to help with readability, please.