C
cwrightAGL
I have a form with 2 views. Each view has a lot of validations (i.e. Cannot
be blank fields). In some cases, I need to be able to use Submit() and check
the validations on the first view but not on the second view as it is blank.
The only way that I found to accomplish that is to not use Cannot be blank on
the second view but add a validation rule behind each field that needs to be
required with a condition to make it required only if the second view is
completed. That is very tedious. Is there a better way to do that in code? (I
am using Visual Studio and VB.NET).
I have not been able to find a way to just use Submit() on a view.
be blank fields). In some cases, I need to be able to use Submit() and check
the validations on the first view but not on the second view as it is blank.
The only way that I found to accomplish that is to not use Cannot be blank on
the second view but add a validation rule behind each field that needs to be
required with a condition to make it required only if the second view is
completed. That is very tedious. Is there a better way to do that in code? (I
am using Visual Studio and VB.NET).
I have not been able to find a way to just use Submit() on a view.