Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FieldBeingValidated()
Message
From
03/04/2002 11:34:11
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00639971
Message ID:
00640395
Views:
19
>>>
>>>Here are our rule call and Error for the field:
>>>VARTYPE(ovalid)="O".AND.(Ovalid.nlocked=0.OR.source(complevl,"CompLevl"))&& Field rule
>>>
>>>IIF(VARTYPE(ovalid)#"O","Field validation failure in COMPLEVL","") && Error
>>
>>
>>I also see that you skip the validation if Ovalid.nLocked=0. I'm trying to develope a class that skips the validation on the underlying DBF() during a TABLEUPDATE(), if it's already been done in the View. Any chance that's what your Ovalid.nLocked=0 is doing?
>
>All our validation methods are stored in a table (in several related tables, to be precise) and we have a visual interface to change them... I can send you our Methods form screen shot, if you'd like, and the resolve validation screen...

I was hoping you were already doing what I'm trying to do.
I'm trying to get my field-level validation rules to automatically recognize that the data has already been validated in a view and turn itself off.

One last question (I think).
I'm assuming that source() is a generic UDF() that ALL (or several) fields use as their Field rule and not unique to COMPLEVL. Is that right?

Thanks for taking the time to deal with me.
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform