Valids not being fired
Posted: Thu May 04, 2017 7:50 pm
I have seen the results in my application in the past. Validations that should be happening are not being processed. As a result, on the respective screen I added page level validation to catch these occurrences and attempt to resolve them. In most cases this has worked but have never determined the cause. Validations failing to be fired can be a major problem.
Today I go more detailed information on the check for our customer loan credit application program. We have two date field, one for when the paperwork has been received and then when the paperwork has been reviewed. The 2 date fields start out empty. When the user clicks modify and enter edit mode, they go to the date fields and enter in the date, typically by using the +/- key or entering in the actual date. When the field is exited, the valid clause normally causes the corresponding user initials field for the paperwork and paperwork review date fields to be populated and displayed on the screen.
Today, when the valid clause did not work properly I had the user stop doing anything until I could review the dialog that was still in the edit mode. The error check process returns focus to the field in question that upon exit with a non-empty date value, updates the initials field if no currently completed. I exited the now completed field and the proper updating of the user initial field did not occur. I then click on the state filed, while still in edit mode, and entered in the state code of WW, which is not valid. However, the popup saying the invalid state code of 'WW' did not appear. The valid clause did not fire. I even went out of edit mode and then went back in and the state code validation still did not work. I should have tried other validation fields but did not this time. For some reason the valid clauses were not firing.
Only when I closed that dialog, staying in the main program and reopened that dialog did the validation clauses again work.
What is causing the validation clauses to not be fired. It is as if the fields never detect focus being gained so focus is not lost or detect as lost. This is not a readily duplicable situation but it can be detected so some type of debugging could be added. I am using Express 264. Is there something in the Express++ kernel that could be disabling the valids from being en mass.
Today I go more detailed information on the check for our customer loan credit application program. We have two date field, one for when the paperwork has been received and then when the paperwork has been reviewed. The 2 date fields start out empty. When the user clicks modify and enter edit mode, they go to the date fields and enter in the date, typically by using the +/- key or entering in the actual date. When the field is exited, the valid clause normally causes the corresponding user initials field for the paperwork and paperwork review date fields to be populated and displayed on the screen.
Today, when the valid clause did not work properly I had the user stop doing anything until I could review the dialog that was still in the edit mode. The error check process returns focus to the field in question that upon exit with a non-empty date value, updates the initials field if no currently completed. I exited the now completed field and the proper updating of the user initial field did not occur. I then click on the state filed, while still in edit mode, and entered in the state code of WW, which is not valid. However, the popup saying the invalid state code of 'WW' did not appear. The valid clause did not fire. I even went out of edit mode and then went back in and the state code validation still did not work. I should have tried other validation fields but did not this time. For some reason the valid clauses were not firing.
Only when I closed that dialog, staying in the main program and reopened that dialog did the validation clauses again work.
What is causing the validation clauses to not be fired. It is as if the fields never detect focus being gained so focus is not lost or detect as lost. This is not a readily duplicable situation but it can be detected so some type of debugging could be added. I am using Express 264. Is there something in the Express++ kernel that could be disabling the valids from being en mass.