I've uploaded a png of the form I'm working on, it is based on a set with a main one to many relationship between a table of checkpoints and child table of competitors that visit the check point and we can record arrival time, departure time etc for each in the relevant child record. (this is the 'Details' form)
Because we are doing a lot of things in the background with recording data (the database controls events over a large area with data being passed to the user by amateur radio operators). I have a global variable called checkpoint_id, and there is a form level filter so that the data from only one checkpoint is available, to move to the data for another checkpoints you select the checkpoint from the multi-state button, and variable checkpoint_id is set to the record id for the new check point and the screen should refresh to show the data for the new checkpoint.
My initial design works in that I have a separate form called 'Controller' (screen grab also uploaded) that has lots of other functionality but also has one of the multi-state buttons, which has the same code as on the details form but also also opens the details form and it shows the correct checkpoint constantly, so move between checkpoints, users would, close the details form (using the [menu] button), this would then show the 'controller' form they can then select the new checkpoint which would re-open the form details with the new checkpoint displayed.
I realised that it would be quicker if they could just select the new checkpoint form the details screen and have it change to the data for the new check point. and added a duplicate multi-state button on the details form, However when I click on the multi-state button it doesn't always work, although it correctly sets the checkpoint_id variable the screen doesn't change. ( I have a screen refresh as part of the script)
What I find rather stage is this:-
1. I open the controller form and click on it's multi state button all works correctly and it consistantly opens the details form with the correct checkpoint shown
2. I then try to move to another checkpoint using the multi-state on the details screen, however nothing happens, (although I know that the global variable has been updated correctly to the id of the new checkpoint)
It now gets interesting
3. If I then click on the form / browse layout button on the tool bar, it takes you to the default browse for this set / form but still shows the data from the original checkpoint.
4. But if I click again on the form / browse button it takes me back to the form with the correct data shown
What is really strange is that once I have done this once (toggled to browse and back again) then the multi-state button works correctly form then on.
I have also tested opening the 'details' form directly rather than via the multi-state button on the 'controller' form and I still have the same problem
Any suggestions what is being done in the background by Alpha 5 when I toggle between the browse and the form that might allow the multi-state to work from then on ?
Thanks
John
Because we are doing a lot of things in the background with recording data (the database controls events over a large area with data being passed to the user by amateur radio operators). I have a global variable called checkpoint_id, and there is a form level filter so that the data from only one checkpoint is available, to move to the data for another checkpoints you select the checkpoint from the multi-state button, and variable checkpoint_id is set to the record id for the new check point and the screen should refresh to show the data for the new checkpoint.
My initial design works in that I have a separate form called 'Controller' (screen grab also uploaded) that has lots of other functionality but also has one of the multi-state buttons, which has the same code as on the details form but also also opens the details form and it shows the correct checkpoint constantly, so move between checkpoints, users would, close the details form (using the [menu] button), this would then show the 'controller' form they can then select the new checkpoint which would re-open the form details with the new checkpoint displayed.
I realised that it would be quicker if they could just select the new checkpoint form the details screen and have it change to the data for the new check point. and added a duplicate multi-state button on the details form, However when I click on the multi-state button it doesn't always work, although it correctly sets the checkpoint_id variable the screen doesn't change. ( I have a screen refresh as part of the script)
What I find rather stage is this:-
1. I open the controller form and click on it's multi state button all works correctly and it consistantly opens the details form with the correct checkpoint shown
2. I then try to move to another checkpoint using the multi-state on the details screen, however nothing happens, (although I know that the global variable has been updated correctly to the id of the new checkpoint)
It now gets interesting
3. If I then click on the form / browse layout button on the tool bar, it takes you to the default browse for this set / form but still shows the data from the original checkpoint.
4. But if I click again on the form / browse button it takes me back to the form with the correct data shown
What is really strange is that once I have done this once (toggled to browse and back again) then the multi-state button works correctly form then on.
I have also tested opening the 'details' form directly rather than via the multi-state button on the 'controller' form and I still have the same problem
Any suggestions what is being done in the background by Alpha 5 when I toggle between the browse and the form that might allow the multi-state to work from then on ?
Thanks
John
Comment