Discussion:
Validate field value against relation in code
(too old to reply)
Sven
2010-10-05 13:07:03 UTC
Permalink
Hi,

let's say you have 3 parameters:

1) TableId

2) FieldId

3) FieldValue

Is there any (standard) way of checking if the fieldvalue is an ok value for
that field (using its relations - direct or via EDT) in code? (without trying
an insert or any of that)

Thanks for any help,



Sven
unknown
2010-10-06 17:56:07 UTC
Permalink
I haven't tested it but something along these lines:

SysDictField sysDictField;
;

sysDictField = new SysDictField(tableId, fieldId);

if (sysDictField.type() == typeof(fieldValue))
{
//check passed
}
--
Mathieu Vaillancourt
http://vaillancourtm.blogspot.com
Post by Sven
Hi,
1) TableId
2) FieldId
3) FieldValue
Is there any (standard) way of checking if the fieldvalue is an ok value for
that field (using its relations - direct or via EDT) in code? (without trying
an insert or any of that)
Thanks for any help,
Sven
Loading...