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).
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--C0A8491CDB43466D9F2645018473588B--><OBCQL_WIDGET_QUERY>
<!--C0A8491CDB43466D9F2645018473588B-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[C0A8491CDB43466D9F2645018473588B]]></OBCQL_WIDGET_QUERY_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--C0A8491CDB43466D9F2645018473588B-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[D1E4261099AE4095B2F2DAEE0F7E7784]]></OBKMO_WIDGET_CLASS_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <HQL><![CDATA[select myWindow.name as windowName, myTab.name as tabName, myTab.id as tabId, count(field) as fieldCount
from ADField field inner join field.tab myTab
                                 inner join myTab.window myWindow
where myWindow.name like :window_name
  and myWindow.client.id = :client
group by myWindow.name, myTab.name, myTab.id
order by myWindow.name]]></HQL>
<!--C0A8491CDB43466D9F2645018473588B--></OBCQL_WIDGET_QUERY>

</data>