OK, so here is it in full. Sorry if I didn't make it clear.
I have a model railway with four locos. There are a maximum of 19 different trains that I can run using these locos.
I have room on my small layout station for a maximum of 2 trains. Once a loco is in use, all the other trains that use that loco drop out of the list of possibles.
So I ask for the first train and accept it. It goes into the TrainsInStation list. I do the same with the next train. I now have two trains in the station. Before I can accept another one, I have to drive one of these two out and back into storage.
I would like to go to the list of trains in station, select a checkbox for the train I am taking back and hit the "clear accepted train" button.
This should give me a list of checkboxes that are now "true" - and it will be just the one so that I can now reset its "inStation" flag and run the train back out and everything is where it should be.
Currently, when I hit the "clear accepted train" button there is nothing anywhere that tells me the state of these checkboxes. Do I have to name them and find them in the list of items on the page or is there s simpler way of doing this?