Esempio n. 1
0
        public static GetViewsField Field <T>(string name, string displayName, bool isReadOnly, bool required, bool hasValues)
        {
            GetViewsField field = new GetViewsField
            {
                name                        = name,
                type                        = DataTypeHelper.GetAmplaDataType <T>(),
                displayName                 = displayName,
                hasAllowedValues            = hasValues,
                hasRelationshipMatrixValues = false,
                readOnly                    = isReadOnly,
                required                    = required
            };

            return(field);
        }