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)}}
- Bloque
-
EXTRACT-48 Improve sort and columns fields disabledCondition with saved query
-
- Open
-