Is it possible to set a field as "Required" in a dataset's XML metadata?

LabKey Support Forum (Inactive)
Is it possible to set a field as "Required" in a dataset's XML metadata? pelzc  2016-09-28 11:42
Status: Closed
 
Through the GUI, one may set a field in a dataset to "Required" by checking a box when editing the dataset definition. I would like to be able to set this attribute in a file based module (similar to setting the "isHidden" attribute to true). If there is not a "isRequired" attribute, any suggestions on how to set this option programmatically would be appreciated. Also, is there is list of attributes that are supported in the XML metatdata?
 
 
jeckels responded:  2016-09-28 12:22
Please use the <nullable> element to control this via XML. It's the same property, just with a different name from what the UI shows.

The XML schema tableInfo.xsd defines the properties. You can find it in the Subversion source code under:

schemas\tableInfo.xsd

or refer to HTML-based documentation for the <column> element (generated from the XSD itself) here:

https://www.labkey.org/download/schema-docs/xml-schemas/schemas/tableInfo_xsd/complexTypes/ColumnType.html

Thanks,
Josh