Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2665

disabledCondition on ConfigurableFormPanel doesn't work with sub conditions

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.11, 4.9.0
    • 4.1.0
    • None
    • None

      I need to configure a condiftion like A OR (B AND C) on a ConfigurableFormPanel field.

      In ConfigurableFormPanel documentation, It's difficult to understand how to do this: the configure and _addDisabledConditionListener methods documentation specify different ways.

      Anyway, I tried some syntaxes but always lead to error.

      Last try:

      disableCondition: {
        conditions: [
        {
          condition: [{
            id: 'queryType',
            operator: 'neq',
            value: 'ref'
          }]
        },
        {
          conditions: [{
            condition: [{
              id: 'overrideSorts',
              operator: 'neq',
              value: 'add'
            },
            {
              id: 'overrideSorts',
              operator: 'neq',
              value: 'override'
            }]
          }]
        }],
        type: 'or'
      }

       

      This leads to:

      Uncaught TypeError: Cannot read property '__relativeFields' of undefined
      {{ at constructor.getRelativeField (ConfigurableFormPanel.js:3952)}}
      {{ at constructor._evaluateCondition (ConfigurableFormPanel.js:3846)}}
      {{ at constructor._evaluateDisableCondition (ConfigurableFormPanel.js:3827)}}
      {{ at constructor._evaluateDisableCondition (ConfigurableFormPanel.js:3811)}}
      {{ at constructor._disableField (ConfigurableFormPanel.js:3784)}}
      {{ at constructor.activateDisableCondition (ConfigurableFormPanel.js:3728)}}
      {{ at constructor.each (ext-all-debug.js:45761)}}
      {{ at constructor._initializeDisableConditions (ConfigurableFormPanel.js:3734)}}
      {{ at constructor.configure (ConfigurableFormPanel.js:2205)}}
      {{ at constructor._configureFormCb (EditExtractionNodeDialog.js:274)}}

            Unassigned Unassigned
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: