Hello,
I have a app where each page has an undefined number of tables (Meaning on one page we may have 3 tables and on another we may have 15). They are all dynamically populated with values from a MySQL Database, creating a template of sorts. The idea behind this app is to allow us to pull information into the page, modify it, then save it to a different location.
To accomplish this, each row in our tables contain Inputs, where the default value is the value found in the DB.
I have this part working properly.
What I am having problems with is when I try to save this job back to the database.
I am assuming I need some "for loop" to accomplish this using some variation of the following pseudocode:
for(tableIndex = 0; tableIndex < JSON.length; tableIndex++) {
for(row = 0; row < totalRows; row++) {
val1.value = row[0]; //Where 0 would be column 1 value
}
};
I just don't know how to get there from here.
Any and all help would be greatly appreciated.