modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml
author Gorka Ion Damián <gorkaion.damian@openbravo.com>
Thu, 16 Dec 2010 12:27:43 +0100
changeset 9219 d24cdfe1270f
parent 9176 99808e693803
child 9334 1c94ebed6ca1
permissions -rw-r--r--
[OBCQL] Implemented summarize options (sum, average, count).
harpreet@9091
     1
<?xml version='1.0' encoding='UTF-8'?>
harpreet@9091
     2
<data>
harpreet@9091
     3
<!--C0A8491CDB43466D9F2645018473588B--><OBCQL_WIDGET_QUERY>
harpreet@9091
     4
<!--C0A8491CDB43466D9F2645018473588B-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[C0A8491CDB43466D9F2645018473588B]]></OBCQL_WIDGET_QUERY_ID>
harpreet@9091
     5
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
     6
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
     7
<!--C0A8491CDB43466D9F2645018473588B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
     8
<!--C0A8491CDB43466D9F2645018473588B-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[D1E4261099AE4095B2F2DAEE0F7E7784]]></OBKMO_WIDGET_CLASS_ID>
gorkaion@9219
     9
<!--C0A8491CDB43466D9F2645018473588B-->  <HQL><![CDATA[select myWindow.name as windowName, myTab.name as tabName, myTab.id as tabId, count(field) as fieldCount
gorkaion@9219
    10
from ADField field inner join field.tab myTab
gorkaion@9219
    11
                                 inner join myTab.window myWindow
gorkaion@9219
    12
where myWindow.name like :window_name
gorkaion@9219
    13
  and myWindow.client.id = :client
gorkaion@9219
    14
group by myWindow.name, myTab.name, myTab.id
gorkaion@9219
    15
order by myWindow.name]]></HQL>
harpreet@9091
    16
<!--C0A8491CDB43466D9F2645018473588B--></OBCQL_WIDGET_QUERY>
harpreet@9091
    17
harpreet@9091
    18
</data>