Pogues
Pogues copied to clipboard
Dynamic tables - UI for every control levels
Lunatic 2 offers dynamic tables with controls. Those controls can be at three levels:
- the cell
- the row
- the table
Pogues doesn't currently have this capability. We fist need to add a conditional Level field (:fr: Niveau) for controls over a table question.
A simple UI would be 👇
As noted by @BulotF : we will need a way to attach the cell controls to the right cells.
Two possibilities:
- a declarative field (appears when we choose the cell level)
- a implicit mecanism based on the variable used in the VTL expression (hard)
The Cell Control would be replaced by a Text format Check : https://github.com/InseeFr/Pogues/issues/746
The Row Control UI is described above.
pogues-model: In the ControlType, add an element "Scope" with minOccurs = 0. It would be filled only for "Line Checks"
DDI: Add 3 TypeOfComputationItem : line-warning ; line-stumblingblock ; line-informational
UI for the table controls seems good, but when creating a controls for a simple question, i'm getting a generation error:
Unknown error during generation: SpEL mapping expression defined on property 'criticality', for format DDI, in class fr.insee.eno.core.model.navigation.Control, failed on object ComputationItemTypeImpl[id=lvc0qg2v-CI-1]
Eno java error: these table line controls are not implemented yet in DDI -> Lunatic
Pour mémoire :
- InseeFr/Eno#986