svn commit: r1001167 - in /ofbiz/branches/jquery/applications/order: webapp/ordermgr/entry/setAdditionalParty.ftl webapp/ordermgr/order/findOrders.ftl widget/ordermgr/OrderViewScreens.xml

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

svn commit: r1001167 - in /ofbiz/branches/jquery/applications/order: webapp/ordermgr/entry/setAdditionalParty.ftl webapp/ordermgr/order/findOrders.ftl widget/ordermgr/OrderViewScreens.xml

jleroux@apache.org
Author: jleroux
Date: Sat Sep 25 09:01:37 2010
New Revision: 1001167

URL: http://svn.apache.org/viewvc?rev=1001167&view=rev
Log:
An asmselect example of use from a FTL template in Find Orders screen. I tried with additionalRoleTypeId in setAdditionalParty.ftl but, I don't know why, it does not work (needs https://issues.apache.org/jira/browse/OFBIZ-3957 to be fixed but that's not the problem)

Modified:
    ofbiz/branches/jquery/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl
    ofbiz/branches/jquery/applications/order/webapp/ordermgr/order/findOrders.ftl
    ofbiz/branches/jquery/applications/order/widget/ordermgr/OrderViewScreens.xml

Modified: ofbiz/branches/jquery/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl?rev=1001167&r1=1001166&r2=1001167&view=diff
==============================================================================
--- ofbiz/branches/jquery/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl (original)
+++ ofbiz/branches/jquery/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl Sat Sep 25 09:01:37 2010
@@ -111,7 +111,7 @@ under the License.
         <tr>
           <td>&nbsp;</td>
           <td>
-            <select name="additionalRoleTypeId" size="5" multiple="multiple">
+            <select name="additionalRoleTypeId" id="additionalRoleTypeId" size="5" multiple="multiple">
               <#list roles as role>
               <option value="${role.roleTypeId}">${role.get("description",locale)}</option>
               </#list>

Modified: ofbiz/branches/jquery/applications/order/webapp/ordermgr/order/findOrders.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/applications/order/webapp/ordermgr/order/findOrders.ftl?rev=1001167&r1=1001166&r2=1001167&view=diff
==============================================================================
--- ofbiz/branches/jquery/applications/order/webapp/ordermgr/order/findOrders.ftl (original)
+++ ofbiz/branches/jquery/applications/order/webapp/ordermgr/order/findOrders.ftl Sat Sep 25 09:01:37 2010
@@ -115,7 +115,7 @@ function toggleOrderIdList() {
   <input type='hidden' name='gatewayScoreResult' value='${requestParameters.gatewayScoreResult?if_exists}'/>
 </form>
 </#if>
-<form method="post" name="lookuporder" action="<@ofbizUrl>searchorders</@ofbizUrl>" onsubmit="javascript:lookupOrders();">
+<form method="post" name="lookuporder" id="lookuporder" action="<@ofbizUrl>searchorders</@ofbizUrl>" onsubmit="javascript:lookupOrders();">
 <input type="hidden" name="lookupFlag" value="Y"/>
 <input type="hidden" name="hideFields" value="Y"/>
 <input type="hidden" name="viewSize" value="${viewSize}"/>
@@ -185,7 +185,7 @@ function toggleOrderIdList() {
                 <td width='25%' align='right' class='label'>${uiLabelMap.PartyRoleType}</td>
                 <td width='5%'>&nbsp;</td>
                 <td align='left'>
-                  <select name='roleTypeId' multiple="multiple">
+                  <select name='roleTypeId' id='roleTypeId' multiple="multiple">
                     <#if currentRole?has_content>
                     <option value="${currentRole.roleTypeId}">${currentRole.get("description", locale)}</option>
                     <option value="${currentRole.roleTypeId}">---</option>

Modified: ofbiz/branches/jquery/applications/order/widget/ordermgr/OrderViewScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/applications/order/widget/ordermgr/OrderViewScreens.xml?rev=1001167&r1=1001166&r2=1001167&view=diff
==============================================================================
--- ofbiz/branches/jquery/applications/order/widget/ordermgr/OrderViewScreens.xml (original)
+++ ofbiz/branches/jquery/applications/order/widget/ordermgr/OrderViewScreens.xml Sat Sep 25 09:01:37 2010
@@ -231,10 +231,21 @@ under the License.
                 <set field="headerItem" value="findorders"/>
                 <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/FindOrders.groovy"/>
                 <script location="component://content/webapp/content/WEB-INF/actions/print/FindPrinters.groovy"/>
+                
+                <!-- asmslect parameters, must be prefixed by asm_ for setMultipleSelectJs.ftl -->
+                <set field="asm_multipleSelectForm"  value="lookuporder"/>
+                <set field="asm_multipleSelect"  value="roleTypeId"/>
+                <set field="asm_formSize" value="700"/>
+                <set field="asm_asmListItemPercentOfForm" value="95"/>
+                <set field="asm_sortable" value="false"/>
+                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
+                <set field="asm_title" value="${uiLabelMap.OrderPartySelectRoleForParty}"/>                
+                
             </actions>
             <widgets>
                 <decorator-screen name="CommonOrderViewDecorator">
                     <decorator-section name="body">
+                        <platform-specific><html><html-template location="component://common/webcommon/includes/setMultipleSelectJs.ftl"/></html></platform-specific>                        
                         <platform-specific>
                             <html><html-template location="component://order/webapp/ordermgr/order/findOrders.ftl"/></html>
                         </platform-specific>