Pogues icon indicating copy to clipboard operation
Pogues copied to clipboard

Dynamic tables - UI for every control levels

Open romaintailhurat opened this issue 1 year ago • 4 comments

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 👇

image

romaintailhurat avatar Jan 24 '24 13:01 romaintailhurat

As noted by @BulotF : we will need a way to attach the cell controls to the right cells.

Two possibilities:

  1. a declarative field (appears when we choose the cell level)
  2. a implicit mecanism based on the variable used in the VTL expression (hard)

romaintailhurat avatar Jan 24 '24 13:01 romaintailhurat

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

BulotF avatar Mar 22 '24 17:03 BulotF

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]

romaintailhurat avatar Apr 23 '24 09:04 romaintailhurat

Eno java error: these table line controls are not implemented yet in DDI -> Lunatic

nsenave avatar Apr 23 '24 09:04 nsenave

Pour mémoire :

  • InseeFr/Eno#986

nsenave avatar Aug 12 '24 13:08 nsenave