Skip to content

Improved: Add condition-date on entity-condition element (OFBIZ-13349)#948

Open
nmalin wants to merge 1 commit intoapache:trunkfrom
nmalin:OFBIZ-13349-widget-condition-date
Open

Improved: Add condition-date on entity-condition element (OFBIZ-13349)#948
nmalin wants to merge 1 commit intoapache:trunkfrom
nmalin:OFBIZ-13349-widget-condition-date

Conversation

@nmalin
Copy link
Contributor

@nmalin nmalin commented Jan 27, 2026

On screen or form actions, I propose to add a condition-date element on to directly add historic filter.

Currently, element entity-condition can have a boolean attribute filter-by-date that filter your entity list with fromDate/thruDate on now date only.

If you need to navigate on history or use some other date fields, you can't use it and need to add a complex condition by hand

With condition-date you can select the date value to use and date fields for the filter.

Example :

Complex :










Simple :





Default :





Improved:
Implemented:
Documented:
Completed:
Reverted:
Fixed:
(OFBIZ-)

Explanation

Thanks:

On screen or form actions, I propose to add a condition-date element on <entity-condition> to directly add historic filter.

Currently element entity-condition can have a boolean attribute filter-by-date that filter your entity list with fromDate/thruDate on now date only.

If you need to navigate on history or use some other date fields, you can't use it and need to add a complex condition by hand

With condition-date you can select the date value to use and date fields for the filter.

example :

Complex :
  <entity-condition entity-name="PartyContactDetailByPurpose">
      <condition-list>
          <condition-expr field-name="partyId" operator="equals" from-field="parameters.partyId"/>
          <condition-date from-field="order.orderDate" ignore-if-empty="true">
              <date-field field-name="fromDate">
              <date-field field-name="thruDate">
              <date-field field-name="purposeFromDate">
              <date-field field-name="purposeThruDate">
          </condition-date>
      </condition-list>
  </entity-condition>

 Simple :
  <entity-condition entity-name="PartyContactDetailByPurpose">
      <condition-list>
          <condition-expr field-name="partyId" operator="equals" from-field="parameters.partyId"/>
          <condition-date from-field="order.orderDate"/>
      </condition-list>
  </entity-condition>

 Default :
  <entity-condition entity-name="PartyContactDetailByPurpose">
      <condition-list>
          <condition-expr field-name="partyId" operator="equals" from-field="parameters.partyId"/>
          <condition-date/>
      </condition-list>
  </entity-condition>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant