Author: sichen
Date: Tue Jan 23 16:25:57 2007
New Revision: 499194
URL:
http://svn.apache.org/viewvc?view=rev&rev=499194Log:
Added sum view-entity for communications so we can count them by status and partyIdTo. Small change to order the communication event list by newest first.
Modified:
ofbiz/trunk/applications/party/entitydef/entitygroup.xml
ofbiz/trunk/applications/party/entitydef/entitymodel.xml
ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml
Modified: ofbiz/trunk/applications/party/entitydef/entitygroup.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitygroup.xml?view=diff&rev=499194&r1=499193&r2=499194==============================================================================
--- ofbiz/trunk/applications/party/entitydef/entitygroup.xml (original)
+++ ofbiz/trunk/applications/party/entitydef/entitygroup.xml Tue Jan 23 16:25:57 2007
@@ -55,6 +55,7 @@
<entity-group group="org.ofbiz" entity="CommunicationEventRole" />
<entity-group group="org.ofbiz" entity="CommunicationEventType" />
<entity-group group="org.ofbiz" entity="CommunicationEventAndRole" />
+ <entity-group group="org.ofbiz" entity="CommunicationEventSum" />
<!-- ========================================================= -->
<!-- org.ofbiz.party.contact -->
Modified: ofbiz/trunk/applications/party/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitymodel.xml?view=diff&rev=499194&r1=499193&r2=499194==============================================================================
--- ofbiz/trunk/applications/party/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/party/entitydef/entitymodel.xml Tue Jan 23 16:25:57 2007
@@ -679,6 +679,15 @@
<key-map field-name="parentTypeId" rel-field-name="communicationEventTypeId"/>
</relation>
</entity>
+ <view-entity entity-name="CommunicationEventSum"
+ package-name="org.ofbiz.party.communication"
+ title="Sum of communication events over status">
+ <member-entity entity-alias="CE" entity-name="CommunicationEvent"/>
+ <alias entity-alias="CE" name="communicationEventId" function="count"/>
+ <alias entity-alias="CE" name="statusId" group-by="false"/>
+ <alias entity-alias="CE" name="partyIdTo" group-by="true"/>
+ </view-entity>
+
<!-- ========================================================= -->
<!-- org.ofbiz.party.contact -->
Modified: ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml?view=diff&rev=499194&r1=499193&r2=499194==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml Tue Jan 23 16:25:57 2007
@@ -261,6 +261,7 @@
<service result-map-list-name="listIt" result-map-name="result" service-name="performFind">
<field-map env-name="parameters" field-name="inputFields"/>
<field-map env-name="entityName" field-name="entityName"/>
+ <field-map value="datetimeStarted DESC" field-name="orderBy"/>
</service>
</actions>
<field name="removeLink" title="" widget-style="buttontext">