1. Script object OG.Column

    Article: AN0002159Updated:

    This object provides functions for reading metadata of the class or query columns.

    Script functions

    Name Description
    ColumnClassDef GetById(int id) Function returns column according to the input Id.
    ColumnClassDefList GetAll() Function returns all the columns.
    ColumnClassDefList GetByHierarchy(ClassDef dataParent) Function returns all the clumns of the input class taking into accout class inheritance.
    ColumnClassDef GetByCode( string mCode, string clCode, string colCode) Function returns a column. If the column does not exist, an exception is returned.
    ColumnClassDef GetByCode(int clId, string colCode) Function returns a column. If the column does not exist, an exception is returned.
    ColumnClassDef GetByCode( DataRow dr, string colCode) Function returns a column. If the column does not exist, an exception is returned.
    ColumnType ColumnType_Text Type of the column Text.
    ColumnType ColumnType_Integer Type of the column Integer.
    ColumnType ColumnType_Double Type of the column Decimal
    ColumnType ColumnType_DateTime Type of the column Date.
    ColumnType ColumnType_Boolean Type of the column True/untrue.
    ColumnType ColumnType_File Type of the column File.
    ColumnType ColumnType_ClassLink Type of the column Value from a referenced class.
    ColumnType ColumnType_Guid Type of the column Guid.
    ColumnType ColumnType_ClassDef Type of the column Reference to a class.
    ColumnType ColumnType_Color Type of the column Colour
    ColumnType ColumnType_ServerImage Type of the column Picture
    ColumnType ColumnType_XClassLink Type of the column Value from a referenced class (various classes).

    Object call

    OG.Column

×