Description of the bug
In a stateless Altinn application, the frontend fails to detect changes in hidden expressions for components when updates are made to the data model in the ProcessDataRead method of IDataProcessor when a new List also is added to the datamodel. This issue occurs unless AltinnRowID is manually added to lists in the data model, even when the field referenced in the hidden expression is not part of the list. This behavior is unexpected and limits the functionality of hidden expressions in stateless applications.
Example of fix in ProcessDataRead
{
garantiInformasjon = new GarantiInformasjon
{
transportorOrgnummer = "311193473", <--- Field used in hidden logic
andreGarantister = new List<AnnenGarantist>
{
new AnnenGarantist
{
navn = "testorg",
status = "AKTIV",
AltinnRowId = Guid.NewGuid() <--- Must be included for hidden logic to work
}
},
egneGarantier = new List<Garanti>
{
new Garanti
{
garantitype = "GODS",
status = "AKTIV",
AltinnRowId = Guid.NewGuid() <--- Must be included for hidden logic to work
}
}
}
}
garantist.transportor = transportor;
Steps To Reproduce
- Create a stateless Altinn application with a component being hidden based on a datamodel field
- In IDataProcessor.ProcessDataRead change the status of the field in the expression
- In IDataProcessor.ProcessDataRead initialize a new List without AltinnRowId specified
- Observe that the frontend does not detect changes in the hidden field.
Additional Information
App affected by bug:
Statless layout - Component line 84:
ProcessDataRead
Description of the bug
In a stateless Altinn application, the frontend fails to detect changes in hidden expressions for components when updates are made to the data model in the ProcessDataRead method of IDataProcessor when a new List also is added to the datamodel. This issue occurs unless AltinnRowID is manually added to lists in the data model, even when the field referenced in the hidden expression is not part of the list. This behavior is unexpected and limits the functionality of hidden expressions in stateless applications.
Example of fix in ProcessDataRead
Steps To Reproduce
Additional Information
App affected by bug:
Statless layout - Component line 84:
ProcessDataRead