Ignore property for condition-expr tag
--------------------------------------

                 Key: OFBIZ-1934
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1934
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Bruno Busco
            Priority: Minor
         Attachments: condition-expr_ignore.patch

The attached patch adds the "ignore" property to the "condition-expr" tag.
Using this new property it is possible to ignore the condition if a variable is 
set to true and passed as the ignore value.
For instance, with the following:

<condition-expr field-name="my_field1" operator="equals" 
env-name="parameters.field1" ignore-if-empty="true"/>
<condition-expr field-name="my_field2" operator="equals" 
env-name="parameters.field2" ignore-if-empty="true"/>                    
<condition-expr field-name="my_field3" operator="equals" env-name="null" 
ignore="${my_flag}"/>

the third condition will select only entities with a null my_field3 but this 
can be controlled using the my_flag variable.
If my_flag results to "true" the condition is ignored and all the fields are 
selected (regardless of the my_field3 field value).
The variable can be associated to a check field in the selection form.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to