Sources
The different sources for options in Altinn Studio
When you set up an options-enabled component in Altinn Studio, it needs to be connected to a source of options. There are three different properties in the component configuration that can be used for this, depending on the use case:
Property | Usage |
---|---|
options | Static options defined per-component |
optionsId | Either code lists from json files, dynamic code lists or shared code lists |
source | Code lists from the data model |
At least one such property has to be set in the component configuration. If multiple are set, the configuration precedence will be the opposite of the table above, so source
will take precedence over optionsId
, which will take precedence over options
.
- Static options
Lists of options that does not change, but can be filtered
- Dynamic code lists
Generated runtime by custom C# code
- Code list from repeating structures
Code list made from a repeating structure in the data model
- Common shared code lists
Code lists that are shared across applications
- Re-use options from Altinn 2
Options fetched from Altinn 2