I have created a new entity in entitymodel.xml having the following fields:-
<entity entity-name="Weightageaccord"
package-name="org.ofbiz.product.product"
title="Weightage Entity">
<field name="TypeId" type="id-ne"></field>
<field name="TypeName" type="name"></field>
<field name="Weightage" type="numeric"></field>
<prim-key field="TypeId"/>
</entity>
In Shipping Forms.xml i have given the following
<form name="Search" type="single" target="processForm" title=""
header-row-style="header-row" default-table-style="basic-table">
<field name="TypeId"><text/></field>
<field name="brandName" title="Merchant Name" >
<drop-down allow-empty="false" widget-style="length1">
<entity-options entity-name="Product"
description="${brandName}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="Weightage"><text/></field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}"
widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
What i want is that i want tht field TypeName to be populated with values of
brandName of product entity.When the user chooses a brandName from the
dropdown it will get saved in the typeName of Weightageaccord entity along
with TypeId and Weightage.
Thus, my question is is it possible to populate the drop down field with
values from another field , so that the end user can choose values from it
and submit it, which will be stored in the db along with the other fields in
the table .Please help me
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/populate-the-drop-down-field-with-values-from-another-field-tp2296885p2296885.html
Sent from the OFBiz - User mailing list archive at Nabble.com.