Is there a way to retrieve all datatypes in the database? For example a plugin that returns a list with all the strings that are recordtypes (example: systemversions~n_systemchange#3c916451-d9fd-4bd4-8397-7de8e5fe0afc)
Hi Joeri,
At this moment I think the only ways to see all datatypes in an application would be:
- Via the Datamodel (expression debugger → Data model)
- Using the DataStructure plugin → DS_DataTypeSelector field.
I am not aware of any other way to retrieve all the datatypes in an application, however I think this could be a nice addition to the DataStructure plugin.
A new static function on the NovuloDatastructureTypesTypeHandler (this is a “dynamic” record type, registered by the plugin), that returns a list of string with all the Record type handlers in the application. Quick mock up looks like (note that this returns the titles of the records for the sake of an example, but i would prefer if it was the model element identifiers, which is what your example provides):
Not sure if you need the list in a process, but a plugin process action can also be built to return the same, or even better - Expression Tools evaluate expression action, where you input the above expression should also work.
If you find the above example useful for your use case, I would suggest to create an SR and link it to the P3 - Data Structure plug-in then I can take it up further to development.
Small addition, to retrieve the model names of the data types that you can use in an expression, you could also evaluate the following expression:
{novulodatastructuretypes,modelname}
For this to work, your model needs to include the DataStructure plug-in.