Lunatic icon indicating copy to clipboard operation
Lunatic copied to clipboard

ConditionFilter in cell level in table (DynamicTable)

Open laurentC35 opened this issue 1 year ago • 0 comments

Modelisation

 {
      "componentType": "RosterForLoop",
      "positioning": "HORIZONTAL",      
      "header": [
        { "label": { "type": "VTL|MD", "value": "\"Produits\"" } },
        { "label": { "type": "VTL|MD", "value": "\"Facturations\"" } },
        { "label": { "type": "VTL|MD", "value": "\"Quantités produites\"" } },
        {
          "label": {
            "type": "VTL|MD",
            "value": "\"Quantités facturées\""
          }
        }
      ],
      "lines": {
        "min": { "value": "1", "type": "VTL" },
        "max": { "value": "300", "type": "VTL" }
      },
      "conditionFilter": { "type": "VTL", "value": "true" },
      "id": "lh7pozh6",
      "page": "2",
      "label": {
        "type": "VTL|MD",
        "value": "\"Ajouter une ligne\""
      },
      "components": [
        {
          "id": "sugg1",
          "componentType": "Suggester",
          "mandatory": false,
          "label": {
            "value": "\" Sélectionner un produit\"",
            "type": "VTL|MD"
          },
          "storeName": "nomenclature-eap",
          "conditionFilter": {
            "value": "true",
            "type": "VTL"
          },
          "responses": [
            {
              "id": "id",
              "response": { "name": "ID" }
            },

            {
              "id": "label",
              "response": { "name": "LABEL" }
            },
            {
              "id": "unit",
              "response": { "name": "UNIT" }
            }
          ]
        },
        {
          "componentType": "InputNumber",
          "dynamicUnit": {
            "type": "VTL",
            "value": "\"k\" || \"€\""
          },
          "bindingDependencies": ["FACTURATION"],
          "min": 0,
          "max": 10000000,
          "response": { "name": "FACTURATION" },
          "decimals": 0,
          "id": "lh7pozh6-QOP-lh8v4mbu"
        },
        {
          "componentType": "InputNumber",
          "dynamicUnit": {
            "type": "VTL",
            "value": "UNIT"
          },
          "conditionFilter": {
            "type": "VTL",
            "value": "nvl(UNIT,\"\") <> \"\""
          },
          "bindingDependencies": ["QUANTITE_PRODUITE", "UNIT"],
          "min": 0,
          "max": 100000000,
          "response": { "name": "QUANTITE_PRODUITE" },
          "decimals": 0,
          "id": "lh7pozh6-QOP-lh8viuae"
        },
        {
          "componentType": "InputNumber",
          "dynamicUnit": {
            "type": "VTL",
            "value": "UNIT"
          },
          "conditionFilter": {
            "type": "VTL",
            "value": "nvl(UNIT,\"\") <> \"\""
          },
          "bindingDependencies": ["QUANTITE_FACTUREE"],
          "min": 0,
          "max": 1000000000,
          "response": { "name": "QUANTITE_FACTUREE" },
          "decimals": 0,
          "id": "lh7pozh6-QOP-lh8v3u73"
        }
      ]
    }

laurentC35 avatar Sep 13 '23 14:09 laurentC35