Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11069

Add coalesce to aggregate-function of model view

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • framework

    Description

      While in our IoT case, a product may have a sku product id as well as a productId (product instance) by identified from unique id i.e. an EPC.

      When building operation/inventory reports, to be compatible with previous implement, I have to merge the sku product Id column into the productId column, so comes the coalesce patch. 

      The usage example:

      <alias entity-alias="IID" name="productId" group-by="true" function="coalesce">
          <complex-alias operator=",">
              <complex-alias-field entity-alias="IID" field="skuProductId"/>
              <complex-alias-field entity-alias="IID" field="productId"/>
          </complex-alias>
      </alias>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            shi.jinghai Shi Jinghai
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: