diff --git a/applications/content/webapp/content/cms/CMSContentEdit.ftl b/applications/content/webapp/content/cms/CMSContentEdit.ftl
index d94e591637..172b079dcc 100644
--- a/applications/content/webapp/content/cms/CMSContentEdit.ftl
+++ b/applications/content/webapp/content/cms/CMSContentEdit.ftl
@@ -140,10 +140,8 @@ ${menuWrapper.renderMenuString()}
#list>
-
-
-
-
+
+ <@htmlTemplate.lookupField3 formName="updatefeatures" name="fieldValue0_o_${rowCount}" id="fieldValue0_o_${rowCount}" fieldFormName="LookupFeature"/>
|
diff --git a/applications/content/webapp/content/survey/EditSurveyResponse.ftl b/applications/content/webapp/content/survey/EditSurveyResponse.ftl
index fa8e7f3e2f..e590461490 100644
--- a/applications/content/webapp/content/survey/EditSurveyResponse.ftl
+++ b/applications/content/webapp/content/survey/EditSurveyResponse.ftl
@@ -20,7 +20,7 @@ under the License.
<#-- Render the survey -->
<#if surveyString?has_content>
| ${uiLabelMap.PartyPartyId} |
-
-
-
- |
+
+ <@htmlTemplate.lookupField value='${requestParameters.partyId?if_exists}' formName="lookupparty" name="partyId" id="partyId" fieldFormName="LookupPerson"/>
+ |
| ${uiLabelMap.PartyUserLogin} |
|
diff --git a/applications/manufacturing/webapp/manufacturing/bom/EditProductBom.ftl b/applications/manufacturing/webapp/manufacturing/bom/EditProductBom.ftl
index f3776d423a..82bd79c631 100644
--- a/applications/manufacturing/webapp/manufacturing/bom/EditProductBom.ftl
+++ b/applications/manufacturing/webapp/manufacturing/bom/EditProductBom.ftl
@@ -63,8 +63,7 @@ function lookupBom() {
${uiLabelMap.ProductProductId} |
|
-
-
+ <@htmlTemplate.lookupField value="${productId?if_exists}" formName="searchform" name="productId" id="productId" fieldFormName="LookupProduct"/>
${uiLabelMap.ManufacturingShowBOMAssocs}
|
@@ -75,8 +74,7 @@ function lookupBom() {
${uiLabelMap.ManufacturingCopyToProductId} |
|
-
-
+ <@htmlTemplate.lookupField formName="searchform" name="copyToProductId" id="copyToProductId" fieldFormName="LookupProduct"/>
${uiLabelMap.ManufacturingCopyBOMAssocs}
|
@@ -109,16 +107,14 @@ function lookupBom() {
${uiLabelMap.ProductProductId} |
|
-
-
+ <@htmlTemplate.lookupField value="${productId?if_exists}" formName="editProductAssocForm" name="productId" id="productId" fieldFormName="LookupProduct"/>
|
| ${uiLabelMap.ManufacturingProductIdTo} |
|
-
-
+ <@htmlTemplate.lookupField value="${productIdTo?if_exists}" formName="editProductAssocForm" name="productIdTo" id="productIdTo" fieldFormName="LookupProduct"/>
|
@@ -214,8 +210,16 @@ function lookupBom() {
| ${uiLabelMap.ManufacturingRoutingTask} |
|
- value="${(productAssoc.routingWorkEffortId)?if_exists}"<#else>value="${(request.getParameter("routingWorkEffortId"))?if_exists}"#if> size="10" maxlength="15"/>
-
+ <#if useValues>
+ <#assign value = productAssoc.routingWorkEffortId?if_exists>
+ <#else>
+ <#assign value = request.getParameter("routingWorkEffortId")?if_exists>
+ #if>
+ <#if value?has_content>
+ <@htmlTemplate.lookupField value="${value}" formName="editProductAssocForm" name="routingWorkEffortId" id="routingWorkEffortId" fieldFormName="LookupRoutingTask"/>
+ <#else>
+ <@htmlTemplate.lookupField formName="editProductAssocForm" name="routingWorkEffortId" id="routingWorkEffortId" fieldFormName="LookupRoutingTask"/>
+ #if>
|
diff --git a/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl b/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
index c92d5b2b1d..a5fe6c6ae0 100644
--- a/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
+++ b/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
@@ -63,13 +63,10 @@ function lookupInventory() {
| ${uiLabelMap.ManufacturingProductId} |
|
-
-
-
-
-
-
- ${uiLabelMap.CommonDescription}
+
+ <@htmlTemplate.lookupField value='${requestParameters.productId?if_exists}' formName="lookupinventory" name="productId" id="productId" fieldFormName="LookupProduct"/>
+
+ ${uiLabelMap.CommonDescription}
|
diff --git a/applications/manufacturing/webapp/manufacturing/routing/EditRoutingTaskAssoc.ftl b/applications/manufacturing/webapp/manufacturing/routing/EditRoutingTaskAssoc.ftl
index 4a639d7b9a..ca6e35deb1 100644
--- a/applications/manufacturing/webapp/manufacturing/routing/EditRoutingTaskAssoc.ftl
+++ b/applications/manufacturing/webapp/manufacturing/routing/EditRoutingTaskAssoc.ftl
@@ -42,8 +42,7 @@ function addRoutingTask() {
${uiLabelMap.ManufacturingRoutingTaskId}
-
-
+ <@htmlTemplate.lookupField formName="addtaskassocform" name="workEffortIdTo" id="workEffortIdTo" fieldFormName="LookupRoutingTask"/>
|
${uiLabelMap.CommonFromDate}
diff --git a/applications/order/webapp/ordermgr/entry/cart/showcart.ftl b/applications/order/webapp/ordermgr/entry/cart/showcart.ftl
index 8d682db05d..8cb956e3cd 100644
--- a/applications/order/webapp/ordermgr/entry/cart/showcart.ftl
+++ b/applications/order/webapp/ordermgr/entry/cart/showcart.ftl
@@ -84,6 +84,17 @@ under the License.
LookupSupplierProduct?partyId=${partyId?if_exists}<#else>LookupProduct#if>@ofbizUrl>');">
+ <#-- FIXME Problem here: the input field is shared -->
+ <#--if orderType=="PURCHASE_ORDER">
+ <#if partyId?has_content>
+ <#assign fieldFormName="LookupSupplierProduct?partyId=${partyId}">
+ <#else>
+ <#assign fieldFormName="LookupSupplierProduct">
+ #if>
+ <#else>
+ <#assign fieldFormName="LookupProduct">
+ #if>
+ <@htmlTemplate.lookupField formName="quickaddform" name="add_product_id" id="add_product_id" fieldFormName="${fieldFormName}"/-->
${uiLabelMap.OrderAddGiftCertificate}
<#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
${uiLabelMap.ProductAtpQoh}
@@ -164,8 +175,8 @@ under the License.
|
@@ -114,10 +111,7 @@ under the License.
|
-
-
-
-
+ <@htmlTemplate.lookupField value='${thisPartyId?if_exists}' formName="salesentryform" name="partyId" id="partyId" fieldFormName="LookupCustomerName"/>
|
@@ -174,10 +168,7 @@ under the License.
|
-
-
-
-
+ <@htmlTemplate.lookupField value='${parameters.userLogin.userLoginId}'formName="poentryform" name="userLoginId" id="userLoginId" fieldFormName="LookupUserLoginAndPartyDetails"/>
|
diff --git a/applications/order/webapp/ordermgr/entry/orderagreements.ftl b/applications/order/webapp/ordermgr/entry/orderagreements.ftl
index 99b3bd5997..cb816865f5 100644
--- a/applications/order/webapp/ordermgr/entry/orderagreements.ftl
+++ b/applications/order/webapp/ordermgr/entry/orderagreements.ftl
@@ -158,8 +158,7 @@ under the License.
|
-
-
+ <@htmlTemplate.lookupField formName="agreementForm" name="workEffortId" id="workEffortId" fieldFormName="LookupWorkEffort"/>
|
diff --git a/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl b/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl
index 0efac5b300..c3e291bcb4 100644
--- a/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl
+++ b/applications/order/webapp/ordermgr/entry/setAdditionalParty.ftl
@@ -83,10 +83,7 @@ under the License.
${uiLabelMap.CommonIdentifier} :
-
- |
-
-
+ <@htmlTemplate.lookupField value="${additionalPartyId?if_exists}" formName="quickAddPartyForm" name="additionalPartyId" id="additionalPartyId" fieldFormName="${lookupPartyView}"/>
|
${uiLabelMap.CommonApply}
diff --git a/applications/order/webapp/ordermgr/entry/shipsettings.ftl b/applications/order/webapp/ordermgr/entry/shipsettings.ftl
index fd7758b5c0..f957edde28 100644
--- a/applications/order/webapp/ordermgr/entry/shipsettings.ftl
+++ b/applications/order/webapp/ordermgr/entry/shipsettings.ftl
@@ -255,9 +255,7 @@ under the License.
| |
|
diff --git a/applications/order/webapp/ordermgr/order/appendorderitem.ftl b/applications/order/webapp/ordermgr/order/appendorderitem.ftl
index 5ff45548d1..72fe4464d9 100644
--- a/applications/order/webapp/ordermgr/order/appendorderitem.ftl
+++ b/applications/order/webapp/ordermgr/order/appendorderitem.ftl
@@ -59,7 +59,8 @@ under the License.
<#if "PURCHASE_ORDER" == orderHeader.orderTypeId>
${uiLabelMap.OrderQuickLookup}
#if>
-
+ <#-- FIXME Problem here: the input field is shared -->
+ <@htmlTemplate.lookupField formName="appendItemForm" name="productId" id="productId" fieldFormName="LookupProduct"/>
diff --git a/applications/order/webapp/ordermgr/order/findOrders.ftl b/applications/order/webapp/ordermgr/order/findOrders.ftl
index f241ec82c8..b80e211f46 100644
--- a/applications/order/webapp/ordermgr/order/findOrders.ftl
+++ b/applications/order/webapp/ordermgr/order/findOrders.ftl
@@ -201,10 +201,7 @@ function toggleOrderIdList() {
${uiLabelMap.PartyPartyId} |
|
-
-
-
-
+ <@htmlTemplate.lookupField value='${requestParameters.partyId?if_exists}' formName="lookuporder" name="partyId" id="partyId" fieldFormName="LookupPartyName"/>
|
diff --git a/applications/order/webapp/ordermgr/return/returnHeader.ftl b/applications/order/webapp/ordermgr/return/returnHeader.ftl
index e5813407b4..91f12b59c0 100644
--- a/applications/order/webapp/ordermgr/return/returnHeader.ftl
+++ b/applications/order/webapp/ordermgr/return/returnHeader.ftl
@@ -86,10 +86,7 @@ under the License.
| ${uiLabelMap.OrderReturnFromParty} |
|
-
-
-
-
+ <@htmlTemplate.lookupField value='${returnInfo.fromPartyId?if_exists}' formName="returnhead" name="fromPartyId" id="fromPartyId" fieldFormName="LookupPartyName"/>
|
diff --git a/applications/party/webapp/partymgr/party/linkparty.ftl b/applications/party/webapp/partymgr/party/linkparty.ftl
index 6a1c69135d..5eb8403e11 100644
--- a/applications/party/webapp/partymgr/party/linkparty.ftl
+++ b/applications/party/webapp/partymgr/party/linkparty.ftl
@@ -71,13 +71,10 @@ under the License.
#if>
diff --git a/applications/product/webapp/catalog/category/EditCategory.ftl b/applications/product/webapp/catalog/category/EditCategory.ftl
index e7bba72c9b..d199a1b6b1 100644
--- a/applications/product/webapp/catalog/category/EditCategory.ftl
+++ b/applications/product/webapp/catalog/category/EditCategory.ftl
@@ -182,8 +182,7 @@ function insertImageName(type,nameValue) {
| ${uiLabelMap.ProductPrimaryParentCategory} |
|
-
-
+ <@htmlTemplate.lookupField value="${(productCategory.primaryParentCategoryId)?default('')}" formName="productCategoryForm" name="primaryParentCategoryId" id="primaryParentCategoryId" fieldFormName="LookupProductCategory"/>
|
diff --git a/applications/product/webapp/catalog/category/EditCategoryProducts.ftl b/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
index 43aee0bf8a..b483fe3c51 100644
--- a/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
+++ b/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
@@ -147,8 +147,8 @@ under the License.
diff --git a/applications/product/webapp/catalog/find/keywordsearchactions.ftl b/applications/product/webapp/catalog/find/keywordsearchactions.ftl
index dcb36a184c..4e2f362081 100644
--- a/applications/product/webapp/catalog/find/keywordsearchactions.ftl
+++ b/applications/product/webapp/catalog/find/keywordsearchactions.ftl
@@ -29,8 +29,7 @@ under the License.
@@ -93,8 +91,7 @@ under the License.
${uiLabelMap.WorkEffortProductId1} |
-
- 
+ <@htmlTemplate.lookupField value="${requestParameters.productId_1?if_exists}" formName="advToKeyWordSearchForm" name="productId_1" id="productId_1" fieldFormName="LookupProduct"/>
|
@@ -102,8 +99,7 @@ under the License.
${uiLabelMap.WorkEffortProductId2} |
-
- 
+ <@htmlTemplate.lookupField value="${requestParameters.productId_2?if_exists}" formName="advToKeyWordSearchForm" name="productId_2" id="productId_2" fieldFormName="LookupProduct"/>
|
diff --git a/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl b/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl
index f02ea729e0..5e3117e0d2 100644
--- a/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl
+++ b/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl
@@ -137,8 +137,7 @@ under the License.
#list>
<#else>
-
-
+ <@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID?if_exists}" formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" fieldFormName="LookupProductCategory"/>
#if>
${uiLabelMap.ProductIncludeSubCategories}?
${uiLabelMap.CommonYes}
@@ -332,8 +331,7 @@ under the License.
${uiLabelMap.ProductPrioritizeProductsInCategory}:
-
-
+ <@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID?if_exists}" formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" fieldFormName="LookupProductCategory"/>
|
diff --git a/specialpurpose/ebaystore/webapp/ebaystore/store/ebayApiKeywordSearch.ftl b/specialpurpose/ebaystore/webapp/ebaystore/store/ebayApiKeywordSearch.ftl
index 052f8d23f7..70fd150c63 100644
--- a/specialpurpose/ebaystore/webapp/ebaystore/store/ebayApiKeywordSearch.ftl
+++ b/specialpurpose/ebaystore/webapp/ebaystore/store/ebayApiKeywordSearch.ftl
@@ -92,8 +92,7 @@ under the License.
#list>
<#else>
-
-
+ <@htmlTemplate.lookupField ="${requestParameters.SEARCH_CATEGORY_ID?if_exists}" formName="productSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" fieldFormName="LookupProductCategory"/>
#if>
diff --git a/specialpurpose/googlebase/webapp/googlebase/find/GoogleBaseAdvancedSearch.ftl b/specialpurpose/googlebase/webapp/googlebase/find/GoogleBaseAdvancedSearch.ftl
index ea265622a8..eda0f4720d 100644
--- a/specialpurpose/googlebase/webapp/googlebase/find/GoogleBaseAdvancedSearch.ftl
+++ b/specialpurpose/googlebase/webapp/googlebase/find/GoogleBaseAdvancedSearch.ftl
@@ -137,8 +137,7 @@ under the License.
#list>
<#else>
-
-
+ <@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID?if_exists}" formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" fieldFormName="LookupProductCategory"/>
#if>
${uiLabelMap.ProductIncludeSubCategories}?
${uiLabelMap.CommonYes}
@@ -332,8 +331,7 @@ under the License.
${uiLabelMap.ProductPrioritizeProductsInCategory}:
-
-
+ <@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID?if_exists}" formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" fieldFormName="LookupProductCategory"/>
|
diff --git a/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl b/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl
index d840993245..9bde6d6bac 100644
--- a/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl
+++ b/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl
@@ -58,8 +58,8 @@ under the License.
| ${uiLabelMap.ProjectMgrQuickAssignPartyId} |
-
-  |
+
+ <@htmlTemplate.lookupField formName="addTaskAndAssocForm" name="quickAssignPartyId" id="quickAssignPartyId" fieldFormName="LookupPartyName"/>
|