eeehhhmmm… what did you mean with this statement (?):
You declared a variable which gets an initial value as FALSE. And then immediately you compare this variable with a value returned by canBeConverted() function… In other words, if the canBeConverted() function would return a postive result, then your comparison looks like this:
IF (FALSE == TRUE)) // which will never happen, if conversion does exist
ret = super(); // first do system validations, if everyting was ok (i.e., all mandatory fields filled etc.), then proceed…
// if there were no system validation problems, then start with custom validations
if(ret && UnitOfMeasureConverter::canBeConverted(…))
{
ret = true;
}
return ret;
}
If this does not work, then you are passing wrong values to conversion validation function…