Menu

Types and sizes of attributes

2003-10-29
2003-11-03
  • Marcos Flavio de Oliveira

    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.

     
    • Richard Banks

      Richard Banks - 2003-11-03

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.