svn commit: r774453 - /ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r774453 - /ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml

jaz-3
Author: jaz
Date: Wed May 13 18:01:15 2009
New Revision: 774453

URL: http://svn.apache.org/viewvc?rev=774453&view=rev
Log:
added option to hide expired parties from the contact list view

Modified:
    ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml

Modified: ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml?rev=774453&r1=774452&r2=774453&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml (original)
+++ ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml Wed May 13 18:01:15 2009
@@ -184,17 +184,18 @@
         <field name="preferredContactMechId" title="${uiLabelMap.MarketingContactListPreferredContactMech}">
             <lookup target-form-name="LookupContactMech" target-parameter="partyId"/>
         </field>
-
+        <field name="hideExpired"><check all-checked="true"/></field>
         <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field>
     </form>
     <form name="ListContactListParties" type="list"  title="" list-name="listIt" paginate-target="ListContactListParties"
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
-        <actions>
+        <actions>                  
             <service service-name="performFind" result-map="result" result-map-list="listIt">
                 <field-map field-name="inputFields" from-field="parameters"/>
+                <field-map field-name="filterByDate" from-field="parameters.hideExpired"/>
                 <field-map field-name="orderBy" value="partyId"/>
-                <field-map field-name="entityName" value="ContactListParty"/>
-            </service>
+                <field-map field-name="entityName" value="ContactListParty"/>                
+            </service>            
         </actions>
 
         <field name="contactListId"><hidden/></field>
@@ -212,6 +213,15 @@
                 <parameter param-name="fromDate"/>
             </hyperlink>
         </field>
+        <field name="expireLink" title=" " widget-style="buttontext">            
+            <hyperlink target="updateContactListParty/ListContactListParties" description="${uiLabelMap.CommonExpire}"  link-type="hidden-form" also-hidden="false">                
+                <parameter param-name="contactListId"/>                
+                <parameter param-name="partyId"/>
+                <parameter param-name="fromDate"/>
+                <parameter param-name="donePage"/>                
+                <parameter param-name="thruDate" value="${nowTimestamp}"/>
+            </hyperlink>
+        </field>
     </form>
 
     <form name="EditContactListCommEvent" default-map-name="communicationEvent"  target="updateContactListCommEvent" title="" type="single"