You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2012/05/17 12:09:08 UTC

[jira] [Commented] (OFBIZ-4811) Improving view-entity creation in both XML and DynamicViewEntity to exclude fields declared as Alias from the SQL Select strings

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

Jacques Le Roux commented on OFBIZ-4811:
----------------------------------------

I put from Available Patch to Provide Patch status: there are no patches here...
                
> Improving view-entity creation in both XML and DynamicViewEntity to exclude fields declared as Alias from the SQL Select strings
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4811
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4811
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: FooShyn
>
> To have additional feature for view-entity creation so that
> - Alias can be excluded from the SQL Select strings. This feature is particularly useful when working on reports that need aggregation on the data with fields that need to be use as filter. E.g.: select a.salesman_id, sum(b.sales) as total_sales from salesman a, daily_sales b where a.salesman_id = b.salesman_id and b.sales_date < '02-02-2012' group by a.salesman_id
> - To have constant values that can be use in view-link.
> E.g.
> <view-link rel-entity-alias="ISE" entity-alias="FISIE" rel-optional="true">
> <key-map field-name="importSessionId" rel-field-name="sessionId"/>
>  <field-bound rel-field-name="status" rel-field-value="ERROR"/>
> </view-link>
> This produces something like this:
> select * from a left join b on a.importSessionId = b.sessionId and
> status='ERROR'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira