Does anyone have any advice how I might best accomplish the following with Dynamic Forms?
I have been given a flat table that contains multiple records for a person. I would like to load all of this into a form and allow the person to update the information and save it back to the table. There is demographic data that gets repeated on each row (bad design, I know, but remember I was given the flat file, I didn't create it.). The rest of the row is course information that is unique for each record entered. There are multiple fields that make up the course information.
My form needs to pull the demographic data once and populate the first part of the form (easy enough to do). In the next section of the form, I need to pull information for each course. So for the courses section I need something like:
Course #1 Title: Course #1 Subject: Course #1 Section: Course #1 Credit Hours:
Course #2 Title: Course #2 Subject: Course #2 Section: Course #2 Credit Hours:
Course #3 Title: Course #3 Subject: Course #3 Section: Course #3 Credit Hours: ...
At first, I envisioned pulling this into a data grid, but found out that the data grid will only pull in one pair of data from an SQL query.
I could write a query to first limit the table to the courses that person is teaching and then move to the specific record I want to use for each question. Putting that in a stored procedure would make it fairly painless to put in for each course question, although it will be VERY time consuming to set everything up.
My questions are is there a better way of reading the data into the form so people can edit it? What would be the best way of saving any changes that a person makes to the form once they are done?
If it makes it easier, I could go through and split the flat table into a demographics table and a courses table (better design in the end).
Thanks to anyone that takes the time to read this long post,
Nathan
|