Code list from organisation library
Use code lists published from the Altinn Studio Designer organisation library
Library elements
See Organisation library for more information about the concept.
Using a library code list
To use a code list published from the Altinn Studio Designer organisation library, you can
- Pin a version - to make sure that the application will not change if a new version is published.
- Use the latest version by setting version to
latest
prefix[separator]{org}[separator]{id}[separator]{version}/latest
Example: You have published two versions of a code list countries for your organisation ttd, and you want to use the first version
{
"id": "dropdown-component",
"type": "Dropdown",
"textResourceBindings": {
"title": "Some title"
},
"dataModelBindings": {
"simpleBinding": "some.field"
},
"optionsId": "prefix[separator]ttd[separator]countries[separator]1"
}
Example: You want to always use the latest version of the same code list, without having to redeploy your application
{
"id": "dropdown-component",
"type": "Dropdown",
"textResourceBindings": {
"title": "Some title"
},
"dataModelBindings": {
"simpleBinding": "some.field"
},
"optionsId": "prefix[separator]ttd[separator]countries[separator]latest"
}