There are several spots in the code that are returning strings instead of IDs. This will cause problems and needs to be fixed.
For example, SelectLists take in a list of strings to display in the drop-down. When one of those strings is selected, we get a callback with the string that was selected. This may not be the best way to do things, because we might have duplicates (e.g. two students with the same name).
Another example, when the "XButton" is clicked on any list, we get a callback with a string for which table row had the XButton clicked. If we delete data based on a string name, we would delete any students that have the same name.
There are several spots in the code that are returning strings instead of IDs. This will cause problems and needs to be fixed.
For example, SelectLists take in a list of strings to display in the drop-down. When one of those strings is selected, we get a callback with the string that was selected. This may not be the best way to do things, because we might have duplicates (e.g. two students with the same name).
Another example, when the "XButton" is clicked on any list, we get a callback with a string for which table row had the XButton clicked. If we delete data based on a string name, we would delete any students that have the same name.