Code:
<fields> <field name="LEAD_ID" type="integer" /> <field name="LEADCOUNT" type="integer" customSQL="true" nativeName="LEAD_ID" /> <operationBindings> ... </fields> <operationBindings> <operationBinding operationType="fetch" requiresRole="serveronly" /> <operationBinding operationType="fetch" requiresRole="serveronly" operationId="countEntries"> <customFields>LEADCOUNT</customFields> <summaryFunctions> <LEADCOUNT>count</LEADCOUNT> </summaryFunctions> </operationBinding> <operationBinding operationType="update" requiresRole="readonly" /> </operationBindings> Resulting SQL: SELECT COUNT (mytable.lead_id) AS leadcount FROM mytable WHERE (...)
Best regards,
Blama
Leave a comment: