Project

General

Profile

Actions

Feature proposal #4887

closed

implement and/or conditions

Added by krileon almost 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
25 November 2014
Due date:
% Done:

100%

Estimated time:

Description

redesign how conditionals are configured and stored using new repeat usage and implement support for AND/OR conditions.

Actions #1

Updated by krileon over 9 years ago

This can be done by having a repeat within a repeat usage. Conditions will be surrounded by fieldsets. The fieldsets will repeat and the condition inside the fieldset will also repeat. Each fieldset is an OR usage and each condition in the fieldset is an AND usage. So you could have the following scenario.

(CONDITIN1 and CONDITION2) or (CONDITION3 and CONDITION4)

Where the first one is FIELDSET1 and the second is FIELDSET2. This should keep configuration rather simple and should be easy for PHP/jQuery to parse.

Conditional others is where all of this becomes a problem though. So conditional others maybe just completely removed in favor of conditional self only. If possible conditional others could be treated as an OR usage maybe.

Actions #2

Updated by krileon about 7 years ago

  • % Done changed from 0 to 20

Initial XML param structure implemented as discussed above with outer repeat usage handling OR usage and inner repeat usage handling AND case. Example as follows

Conditions
- Condition 1
- AND Condition 2
OR Conditions
- Condition 3

This means either Condition 1 AND Condition 2 must match OR Condition 3 must match.

Actions #3

Updated by krileon about 7 years ago

  • % Done changed from 20 to 80

Still needs migration and further jQuery API function improvements.

Actions #4

Updated by krileon about 7 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 80 to 100

jQuery improvements done. See #6837 regarding migration.

Actions #5

Updated by krileon about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF