Sunday, February 12, 2012

IsFieldDatewithReformat action not creating valid date in IBM Datacap Taskmaster Capture

IsFieldDatewithReformat action


not creating valid date in IBM


Datacap Taskmaster Capture


Abstract


Dates created by the IsFieldDatewithReformat action are not recognized as valid dates, even by that action.

Cause


This behavior is correct. The IsFieldDatewithReformat action allows dates to be formatted in many different ways. including formats that are not recognized as valid dates. If this is done, any subsequent date validation checks, with either IsFieldDate, or IsFieldDatewithReformat will return false.

Valid date formats are:
Month Name, Day Number, Year - Ex: April 6, 1944
mm/dd/yy - Ex: 04/06/44
mm/dd/yyyy - Ex: 04/06/1944
(d)d.(m)m.yy - Ex: 30.6.44

Resolving the problem


If date validation checking is required for a date form that is not recognized as valid by IsFieldDate or IsFieldDatewithReformat, then either a custom validation action will need to be created, or other validation rules will need to be used that will catch at least the majority of the date validation errors, such as:

IsPatternInField

FindKeyList_InZone

No comments:

Post a Comment