internal CodeTableFieldProperties(CodeTableField field, int majorVersion = 0, bool exportToNewSyntax = false)
        {
            Field = field;

            innerList.Add(fieldClass);
            innerList.Add(calcFormula);
            innerList.Add(initValue);
            innerList.Add(tableRelation);
            if ((majorVersion < 9) || exportToNewSyntax)
            {
                innerList.Add(altSearchField);
            }
            innerList.Add(onValidate);
            innerList.Add(onLookup);
            innerList.Add(validateTableRelation);
            if ((majorVersion >= 9) && !exportToNewSyntax)
            {
                innerList.Add(altSearchField);
            }
            innerList.Add(testTableRelation);
            innerList.Add(extendedDatatype);
            innerList.Add(width);
#if NAV2015
            innerList.Add(accessByPermission);
#endif
#if NAV2016
            innerList.Add(externalName);
            innerList.Add(externalType);
            innerList.Add(externalAccess);
#endif
#if NAV2018
            innerList.Add(obsoleteState);
            innerList.Add(obsoleteReason);
            innerList.Add(dataClassification);
#endif
            innerList.Add(captionML);
            innerList.Add(sQLDataType);
            innerList.Add(notBlank);
            innerList.Add(numeric);
            innerList.Add(charAllowed);
            innerList.Add(dateFormula);
            innerList.Add(valuesAllowed);
#if NAV2009
            innerList.Add(sqlDataType);
#endif
            innerList.Add(description);
            innerList.Add(editable);
            innerList.Add(autoFormatType);
            innerList.Add(autoFormatExpr);
            innerList.Add(captionClass);
        }
Ejemplo n.º 2
0
        internal CodeTableFieldProperties(CodeTableField field)
        {
            Field = field;

            innerList.Add(fieldClass);
            innerList.Add(calcFormula);
            innerList.Add(initValue);
            innerList.Add(tableRelation);
            innerList.Add(altSearchField);
            innerList.Add(onValidate);
            innerList.Add(onLookup);
            innerList.Add(validateTableRelation);
            innerList.Add(testTableRelation);
            innerList.Add(extendedDatatype);
            innerList.Add(width);
#if NAV2015
            innerList.Add(accessByPermission);
#endif
#if NAV2016
            innerList.Add(externalName);
            innerList.Add(externalType);
            innerList.Add(externalAccess);
#endif
            innerList.Add(captionML);
            innerList.Add(sQLDataType);
            innerList.Add(notBlank);
            innerList.Add(numeric);
            innerList.Add(charAllowed);
            innerList.Add(dateFormula);
            innerList.Add(valuesAllowed);
            innerList.Add(description);
            innerList.Add(editable);
            innerList.Add(autoFormatType);
            innerList.Add(autoFormatExpr);
            innerList.Add(captionClass);
        }