Details

    • Type: New Feature New Feature
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: framework
    • Labels:
      None

      Description

      OfBiz allows the creation of views based on the database model. But the data selection is done only by join. It would be great to select the data also by value. And, in some cases, it avoids workarounds and a cleaner code.

      The proposal is to create a new tag inside view-entity tag from entitymodel.xml with the following syntax:

      <filter entity-alias="<table_alias>" field-name="<field_name>" operator="<operator:equals, not-equals, like...>" value="<value_to_select>"/>

      these tag could appear from 0 to N times. When N times, all filter criteria must match with the data to select it.

      I am attaching the xsd and the code I made...

      1. filter_views.diff
        10 kB
        Oscar Pablo
      2. filter_views.patch
        10 kB
        Jacques Le Roux
      3. filter_views.patch
        10 kB
        Jacques Le Roux

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Adam Heath
              Reporter:
              Oscar Pablo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development