[jira] Created: (OFBIZ-1934) Ignore property for condition-expr tag

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1934) Ignore property for condition-expr tag

Nicolas Malin (Jira)
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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1934) Ignore property for condition-expr tag

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Busco updated OFBIZ-1934:
-------------------------------

    Attachment: condition-expr_ignore.patch

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1934) Ignore property for condition-expr tag

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626121#action_12626121 ]

Hans Bakker commented on OFBIZ-1934:
------------------------------------

Hi Bruno, i tested it here.....and works wel.....if no objections i will commit it tomorrow......
Thanks! I already used it in two places here....... will commit tomorrow too as examples.....

> 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 | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-1934) Ignore property for condition-expr tag

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hans Bakker reassigned OFBIZ-1934:
----------------------------------

    Assignee: Hans Bakker

> 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
>            Assignee: Hans Bakker
>            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 | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1934) Ignore property for condition-expr tag

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hans Bakker closed OFBIZ-1934.
------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Committed revision 689713.
Thanks Bruno!


> 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
>            Assignee: Hans Bakker
>            Priority: Minor
>             Fix For: SVN trunk
>
>         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.