Allow blank value with date field
Posted: Wed Jul 20, 2011 4:00 pm
I have defined a date field on my page which is bound to a 6s0 numeric field with a date field formatting and a date format of '01/15/11'.
I want the field to be optional (i.e. return zeros if it blanks). The field works correctly if no keying is done in the field. However, if the user enters a date and subsequently blanks it out the field is automatically filled with '010101' when control is returned to the RPG program.
I have tried setting the "allow blanks" property to true, but this did not have any effect.
I have tried setting the "blank value" property to '0', but then an invalid date message is displayed by the screen.
Is there a way to use the date field widget and allow for a date to be cleared (i.e. set to zero)?
I want the field to be optional (i.e. return zeros if it blanks). The field works correctly if no keying is done in the field. However, if the user enters a date and subsequently blanks it out the field is automatically filled with '010101' when control is returned to the RPG program.
I have tried setting the "allow blanks" property to true, but this did not have any effect.
I have tried setting the "blank value" property to '0', but then an invalid date message is displayed by the screen.
Is there a way to use the date field widget and allow for a date to be cleared (i.e. set to zero)?