Author: hansbak
Date: Thu Aug 14 21:36:50 2008 New Revision: 686144 URL: http://svn.apache.org/viewvc?rev=686144&view=rev Log: after creating a customer request return to the request list showing the new request at the top Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml ofbiz/trunk/specialpurpose/projectmgr/widget/RequestScreens.xml ofbiz/trunk/specialpurpose/projectmgr/widget/forms/RequestForms.xml Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml?rev=686144&r1=686143&r2=686144&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml Thu Aug 14 21:36:50 2008 @@ -567,7 +567,12 @@ <security https="true" auth="true"/> <response name="success" type="view" value="ViewRequest"/> </request-map> - <!-- New request-map --> + <request-map uri="createrequest"> + <security https="true" auth="true"/> + <event type="service" invoke="createCustRequest"/> + <response name="success" type="request-redirect-noparam" value="requestlist"/> + <response name="error" type="view" value="EditRequest"/> + </request-map> <request-map uri="viewprofile"> <security https="true" auth="true"/> <response name="success" type="view" value="viewprofile"/> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/RequestScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/RequestScreens.xml?rev=686144&r1=686143&r2=686144&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/widget/RequestScreens.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/widget/RequestScreens.xml Thu Aug 14 21:36:50 2008 @@ -26,9 +26,10 @@ <set field="titleProperty" value="PageTitleListWorkEffortRequests"/> <set field="tabButtonItem" value="requestlist"/> <set field="headerItem" value="request"/> - <set field="custRequestId" from-field="parameters.custRequestId"/> - <set field="parameters.statusId" value="CRQ_ACCEPTED"/> - <set field="entityName" value="CustRequest"/> + <entity-and list-name="custRequests" entity-name="CustRequest"> + <field-map field-name="statusId" value="CRQ_ACCEPTED"/> + <order-by field-name="-lastModifiedDate"/> + </entity-and> </actions> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/RequestForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/RequestForms.xml?rev=686144&r1=686143&r2=686144&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/RequestForms.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/RequestForms.xml Thu Aug 14 21:36:50 2008 @@ -21,7 +21,7 @@ <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> <form name="ListRequests" type="list" - extends="ListRequests" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml"> + extends="ListRequestList" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml"> <field name="createTaskFromRequest" title="${uiLabelMap.ProjectMgrCreateTaskFromRequest}" widget-style="buttontext"> <hyperlink description="${uiLabelMap.ProjectMgrCreateTaskFromRequest}" target="EditTaskFromRequest?custRequestId=${custRequestId}"/> </field> |
Free forum by Nabble | Edit this page |