select option by FTL

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

select option by FTL

joysaha123
I am trying to create a select option by FTL,  I declared entity in the screens

                                <entity-and entity-name="ProductPriceType" list="productPriceType">
                                        <field-map field-name="productPriceTypeId" />
                                        <field-map field-name="description" />
                                </entity-and> 


And my ftl part is like
                    <select name='productPriceTypeId'>
                      <#list productPriceTypes as productPriceType>
                        <option value='${productPriceTypes.productPriceTypeId}'>${productPriceTypes.description}</option>
                      </#list>
                        <option value="">---</option>
                    </select>


on launching page, values are not getting in the option , but it is fine when i use form widget.

Am i missing something ?