You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2011/04/30 09:49:27 UTC
svn commit: r1098053 -
/ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml
Author: buscob
Date: Sat Apr 30 07:49:27 2011
New Revision: 1098053
URL: http://svn.apache.org/viewvc?rev=1098053&view=rev
Log:
Added column sort feature to communication list forms
Modified:
ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml
Modified: ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml?rev=1098053&r1=1098052&r2=1098053&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml Sat Apr 30 07:49:27 2011
@@ -407,7 +407,7 @@ under the License.
<set field="subject" from-field="subject" default-value="${uiLabelMap.PartyNoSubject}"/>
</row-actions>
<field name="communicationEventId"><hidden/></field>
- <field name="subject">
+ <field name="subject" sort-field="true">
<hyperlink description="${subject}[${communicationEventId}]" target="ViewCommunicationEvent">
<parameter param-name="communicationEventId"/>
<parameter param-name="partyIdFrom" from-field="partyId"/>
@@ -415,25 +415,25 @@ under the License.
<parameter param-name="headerItem" from-field="parameters.headerItem"/>
</hyperlink>
</field>
- <field name="communicationEventTypeId" title="${uiLabelMap.CommonType}"><display-entity description="${description}" entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/></field>
- <field name="statusId">
+ <field name="communicationEventTypeId" title="${uiLabelMap.CommonType}" sort-field="true"><display-entity description="${description}" entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/></field>
+ <field name="statusId" sort-field="true">
<display-entity description="${description}" entity-name="StatusItem" key-field-name="statusId"/>
</field>
- <field name="partyId" title="${uiLabelMap.CommonPartyId}">
+ <field name="partyId" title="${uiLabelMap.CommonPartyId}" sort-field="true">
<display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView" key-field-name="partyId">
<sub-hyperlink target="/partymgr/control/viewprofile" description="[${partyIdFrom}]" target-type="inter-app">
<parameter param-name="partyId" from-field="partyIdFrom"/>
</sub-hyperlink>
</display-entity>
</field>
- <field name="roleTypeId">
+ <field name="roleTypeId" sort-field="true">
<display-entity description="${description}" entity-name="RoleType"/>
</field>
- <field name="roleStatusId">
+ <field name="roleStatusId" sort-field="true">
<display-entity description="${description}" entity-name="StatusItem" key-field-name="statusId"/>
</field>
- <field name="entryDate" title="${uiLabelMap.CommonCreated}"><display type="date"/></field>
- <field name="datetimeStarted" title="${uiLabelMap.CommonSent}"><display type="date"/></field>
+ <field name="entryDate" title="${uiLabelMap.CommonCreated}" sort-field="true"><display type="date"/></field>
+ <field name="datetimeStarted" title="${uiLabelMap.CommonSent}" sort-field="true"><display type="date"/></field>
</form>
<form name="FindCommunicationByOrder" type="single" target="FindCommunicationByOrder" paginate="true" focus-field-name="submitButton"
@@ -571,9 +571,10 @@ under the License.
<form name="ListUnknownPartyEmails" extends="ListCommEvents" type="multi" use-row-submit="true" separate-columns="true"
target="deleteCommunicationEvents" header-row-style="header-row-2">
<actions>
+ <set field="parameters.sortField" from-field="parameters.sortField" default-value="-entryDate"/>
<entity-and list="commEvents" entity-name="CommunicationEventAndRole">
<field-map field-name="statusId" value="COM_UNKNOWN_PARTY"/>
- <order-by field-name="-entryDate"/>
+ <order-by field-name="${parameters.sortField}"/>
</entity-and>
</actions>
<field name="delContentDataResource"><hidden value="Y"/></field>
@@ -601,10 +602,11 @@ under the License.
<form name="ListLookupCommEvents" type="list" list-name="listIt" extends="ListCommEvents" header-row-style="header-row-2" target="deleteCommunicationEvent">
<actions>
+ <set field="parameters.sortField" from-field="parameters.sortField" default-value="-entryDate"/>
<service service-name="performFind" result-map="result" result-map-list="listIt">
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" from-field="entityName"/>
- <field-map field-name="orderBy" value="-entryDate"/>
+ <field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>