The `dataType` attribute can contain any of these values:
The `dataType` attribute can contain any of these values:
...
@@ -247,7 +264,13 @@ The `dataType` attribute can contain any of these values:
...
@@ -247,7 +264,13 @@ The `dataType` attribute can contain any of these values:
*`CONTROLLEDVOCABULARY`
*`CONTROLLEDVOCABULARY`
*`MATERIAL`
*`MATERIAL`
When choosing `CONTROLLEDVOCABULARY`, you must specify a `vocabulary` attribute (see example). Likewise, when choosing `MATERIAL`, a `materialType` attribute must be provided. PropertyTypes that start with a \$ are by definition `managedInternally` and therefore this attribute must be set to True.
When choosing `CONTROLLEDVOCABULARY`, you must specify a `vocabulary` attribute (see example). Likewise, when choosing `MATERIAL`, a `materialType` attribute must be provided.
To create a **richtext property**, use `MULTILINE_VARCHAR` as `dataType` and set `metaData` to `{'custom_widget' : 'Word Processor'}` as shown in the example above.
To create a **tabular, spreadsheet-like property**, use `XML` as `dataType` and set `metaData` to `{'custom_widget' : 'Spreadhseet'}`as shown in the example above.
**Note**: PropertyTypes that start with a \$ are by definition `managedInternally` and therefore this attribute must be set to True.
## assign and revoke properties to sample type / object type
## assign and revoke properties to sample type / object type
The third step, after saving the sample type, is to **assign or revoke properties** to the newly created sample type. This assignment procedure applies to all entity types (dataset type, experiment type).
The third step, after saving the sample type, is to **assign or revoke properties** to the newly created sample type. This assignment procedure applies to all entity types (dataset type, experiment type).
...
@@ -1078,7 +1098,7 @@ ds_new.save()
...
@@ -1078,7 +1098,7 @@ ds_new.save()
* relative path will be shortened to its basename. For example:
* relative path will be shortened to its basename. For example:
The ELN settings are stored as a **JSON string** in the `$eln_settings` property of the `GENERAL_ELN_SETTINGS` sample. You can show the **Main Menu settings** like this: