You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by rendeddula <pr...@teclever.com> on 2011/12/07 11:51:30 UTC
Error While adding Product Price
Hi,
when i tried to update the following error is occurred.
*The Following Errors Occurred:
In set-nonpk-fields a value was not found with the specified valueAcsr:
lookedUpValue, not setting fields
*
the above error is coming for only some products, i am not getting why.
please help me.
my ftl code is this.
<table>
<div class="screenlet"><div class="screenlet-title-bar"><ul><li
class="h3">Update Product</li>
</ul><br class="clear" /></div>
<div class="screenlet-body">
<form method="post"
action="<@ofbizUrl>updateTecleverProduct</...@ofbizUrl>"
id="UpdateProduct" class="basic-form" name="UpdateProduct" onsubmit="return
JSUpdateProductCheck(this);">
<table class="basic-table" cellspacing="0">
<tr>
<td class="label">Product Id </td>
<td><input type="text" name="productId" size="20" maxlength="20"
id="productId" readonly="true" value="${parameters.productId}"/>
</td>
</tr>
<tr>
<td class="label">Product Name </td>
<td><input type="text" name="internalName" size="20" maxlength="20"
id="internalName" value="${productData.internalName?if_exists}"/>
</td>
</tr>
<tr>
<td class="label">Group Name </td>
<td>
<select name="primaryProductCategoryId">
<#if productData.primaryProductCategoryId?has_content>
<option
value="${productData.primaryProductCategoryId}">${productData.primaryProductCategoryId}</option>
</#if>
<#list productCategoryList as categoryList>
<option
value="${categoryList.productCategoryId}">${categoryList.productCategoryId}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td class="label">Product Type </td>
<td>
<select name="productTypeId">
<#if productData.productTypeId?has_content>
<option
value="${productData.productTypeId}">${productData.productTypeId}</option>
</#if>
<#list productTypeList as productTypeList>
<option
value="${productTypeList.description}">${productTypeList.description}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td class="label">Price </td>
<td><input type="text" name="price" size="30" maxlength="255"
id="price" value="${productPrice.price?if_exists}"/>
</td>
</tr>
<tr style="display: none;">
<td class="label">Purpose </td>
<td><input type="text" name="productPricePurposeId" size="30"
maxlength="255" id="price" value="PURCHASE"/>
</td>
</tr>
<tr style="display: none;">
<td class="label">Purpose </td>
<td><input type="text" name="currencyUomId" size="30" maxlength="255"
id="price" value="INR"/>
</td>
</tr>
<tr style="display: none;">
<td class="label">Purpose </td>
<td><input type="text" name="fromDate" size="30" maxlength="255"
id="price" value="${productPrice.fromDate}"/>
</td>
</tr>
<tr style="display: none;">
<td class="label">Price Type </td>
<td><input type="text" name="productPriceTypeId" size="30"
maxlength="255" id="price" value="DEFAULT_PRICE"/>
</td>
</tr>
<tr style="display: none;">
<td class="label">Store Group </td>
<td><input type="text" name="productStoreGroupId" size="30"
maxlength="255" id="price" value="_NA_"/>
</td>
</tr>
<tr>
<td class="label">Taxable </td>
<td><select name="taxable" id="taxable" size="1">
<#if productData.taxable?has_content>
<option
value="${productData.taxable?if_exists}">${productData.taxable?if_exists}</option>
</#if>
<option value=""> </option>
<option value="N">N</option> <option value="Y">Y</option></select>
</td>
</tr>
<tr>
<td class="label">Facility Id </td>
<td>
<select name="facilityId">
<#if productData.facilityId?has_content>
<option
value="${productData.facilityId}">${productData.facilityId}</option>
</#if>
<#list facilityList as facilitysList>
<option
value="${facilitysList.facilityId}">${facilitysList.facilityId}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td class="label">Min Stock </td>
<td><input type="text" name="minimumStock" size="30" maxlength="255"
id="price" value="${productFacility.minimumStock?if_exists}"/>
</td>
</tr>
<tr>
<td class="label">Re Order </td>
<td><input type="text" name="reorderQuantity" size="30" maxlength="255"
id="price" value="${productFacility.reorderQuantity?if_exists}"/>
</td>
</tr>
<tr>
<td class="label"> </td>
<td colspan="4"><input type="submit" class="smallSubmit"
name="submitButton" value="Update Product"/>
</td>
</tr>
</table>
</form>
</div>
</table>
--
View this message in context: http://ofbiz.135035.n4.nabble.com/Error-While-adding-Product-Price-tp4168524p4168524.html
Sent from the OFBiz - User mailing list archive at Nabble.com.