Author: rayb
Date: Mon Jul 30 03:18:05 2007 New Revision: 560914 URL: http://svn.apache.org/viewvc?view=rev&rev=560914 Log: Improved the tracking code orders and visits result screens to show the pagination links. Modified: ofbiz/trunk/applications/marketing/webapp/marketing/trackingcode/TrackingCodeForms.xml ofbiz/trunk/applications/marketing/widget/TrackingCodeScreens.xml Modified: ofbiz/trunk/applications/marketing/webapp/marketing/trackingcode/TrackingCodeForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/marketing/trackingcode/TrackingCodeForms.xml?view=diff&rev=560914&r1=560913&r2=560914 ============================================================================== --- ofbiz/trunk/applications/marketing/webapp/marketing/trackingcode/TrackingCodeForms.xml (original) +++ ofbiz/trunk/applications/marketing/webapp/marketing/trackingcode/TrackingCodeForms.xml Mon Jul 30 03:18:05 2007 @@ -121,11 +121,11 @@ <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field> </form> - <form name="ListTrackingCodeOrders" type="list" title="" list-name="listIt"> + <form name="ListTrackingCodeOrders" type="list" title="" paginate-target="FindTrackingCodeOrders" list-name="listIt"> <actions> <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> <field-map field-name="inputFields" env-name="parameters"/> - <field-map field-name="orderBy" value="orderId"/> + <field-map field-name="orderBy" value="-orderId"/> <field-map field-name="entityName" value="TrackingCodeOrder"/> </service> </actions> @@ -165,11 +165,12 @@ </field> <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field> </form> - <form name="ListTrackingCodeVisits" list-name="listIt" title="" type="list"> + <form name="ListTrackingCodeVisits" list-name="listIt" title="" paginate-target="FindTrackingCodeVisits" type="list"> <actions> <service result-map-list-name="listIt" result-map-name="result" service-name="performFind"> <field-map env-name="requestParameters" field-name="inputFields"/> <field-map env-name="entityName" field-name="entityName"/> + <field-map field-name="orderBy" value="-fromDate"/> </service> </actions> <field name="visitId" title="${uiLabelMap.TrackingCodeVisitVisitId}"> Modified: ofbiz/trunk/applications/marketing/widget/TrackingCodeScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/TrackingCodeScreens.xml?view=diff&rev=560914&r1=560913&r2=560914 ============================================================================== --- ofbiz/trunk/applications/marketing/widget/TrackingCodeScreens.xml (original) +++ ofbiz/trunk/applications/marketing/widget/TrackingCodeScreens.xml Mon Jul 30 03:18:05 2007 @@ -157,6 +157,10 @@ <set field="trackingCodeTabButtonItem" value="TrackingCodeOrder"/> <set field="labelTitleProperty" value="PageTitleListTrackingCodeOrder"/> + <!-- parameters for pagination --> + <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> + <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="30"/> + <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/marketing/control/ListTrackingCode"/> <set field="trackingCodeId" from-field="parameters.trackingCodeId"/> <set field="trackingCodeTypeId" from-field="parameters.trackingCodeTypeId"/> @@ -221,6 +225,10 @@ <set field="titleProperty" value="PageTitleListTrackingCodeVisit"/> <set field="trackingCodeTabButtonItem" value="TrackingCodeVisit"/> <set field="labelTitleProperty" value="PageTitleListTrackingCodeVisit"/> + + <!-- parameters for pagination --> + <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> + <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="30"/> <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/marketing/control/ListTrackingCode"/> <set field="trackingCodeId" from-field="parameters.trackingCodeId"/> |
Free forum by Nabble | Edit this page |