Aug 23, 2017 06:26 amTopic id: 01148

Community tb and Grades tb should come in pairs

When schools do the setting, the script should only allow community tbs and grades tbs to come in pairs that is that are refered to the same period

For example Community_2016 and Grades_2016 could be accepted but Community_2017 and Grades_2016 could not come up because they belong to different periods

Aug 23, 2017 06:27 amReply: 1

The first step would be to named them with the underscore or hypen.

So the program can later split their names and do the comparison

Aug 23, 2017 07:38 amReply: 2

Done. The script on server side names the tables with an underscore between.

Also a round of grades was done as a test and it went fine.

Remains now that on client side, the script does only takes pairs for the same period

Aug 23, 2017 10:24 amReply: 3

NOw the client js code checks that the community and grades tbs to belong to the same period of time.

The ideal case would be that whatever selection within those two options the code checks correctly the other option but that would be later, right now the connection is crap, so by now is fine

This code is necessary even if the one above is added as a check line.

Whatever so far is good enough