Validation Error

Hi,

I faced the following problems while testing an application in comm-care
and request your expert advise or support.

  • I have a column that is having the data-type set as “Long Number”. I
    have entered the following “validation condition” on this column:

string-length(string(.)) = 10

  • If we run this program and while entering data to this column, it
    validates if the length of the total digits entered is 10, and it gives me
    a warning message.
  • However, if I enter any number that is starting with “1” (eg:
    1234567890), it allows me to move forward.
  • But, if I enter any number, that is starting with any other number
    (other than 1 - eg: 2876543210), then it gives me an error that the total
    length is not 10.

The validation works fine only if the digit entered is starting with “1”.
Kindly seek your expert advise.

Warm Regards,
Jeffrey

Jeffrey,

This definitely sounds like a bug in how we’re handling long numbers. I’ll
run some tests and get back to you ASAP.

-Clayton

··· On Tue, Jun 19, 2012 at 12:05 AM, Jeffrey Jose wrote:

Hi,

I faced the following problems while testing an application in comm-care
and request your expert advise or support.

  • I have a column that is having the data-type set as “Long Number”.
    I have entered the following “validation condition” on this column:

string-length(string(.)) = 10

  • If we run this program and while entering data to this column, it
    validates if the length of the total digits entered is 10, and it gives me
    a warning message.
  • However, if I enter any number that is starting with “1” (eg:
    1234567890), it allows me to move forward.
  • But, if I enter any number, that is starting with any other number
    (other than 1 - eg: 2876543210), then it gives me an error that the total
    length is not 10.

The validation works fine only if the digit entered is starting with “1”.
Kindly seek your expert advise.

Warm Regards,
Jeffrey