We are using the AtomsFramework in a corporative project. Whould be interesting include in CAttributeMap class, attributes for size and type of attribute? We think use the size and type of attribute in validations in ASPX pages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dears,
We are using the AtomsFramework in a corporative project. Whould be interesting include in CAttributeMap class, attributes for size and type of attribute? We think use the size and type of attribute in validations in ASPX pages.
Hi Marcos,
The size of an attribute was already available, and I have added the type of an attribute as requested.
You will need to get the latest version from CVS or wait until 0.0.6 is released.
To access the values simply use
<<attributemap>>.ColumnMap.StorageType
and StorageSize.
Alternatively you can use the getFieldTypeByName and getFieldLengthByName methods on the CPersistentObject.
For example
type = c.getFieldTypeByName("ModifiedDate")
where c is some pesistent object
I hope this helps,
Richard.