-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would step back and look at how to put one screenlets, twice into a
screen each dealing with a category. the screenlet being a form.
look at creating an entity-view that has the info you want. for viewing
purposes you can use them.
Larry.Liu sent the following on 3/23/2009 12:55 AM:
> Hi all,
>
> Does anybody knows how to display two product category select-box list in
> the create product form?
>
> Here we have two questions,
>
> First is how can we have two list of the same entity(with different
> entity-constraint) in one form, we can define the field as below, but the
> later one will override the first one, that's the problem.
>
> <field name="productCategoryId"
> title="${uiLabelMap.ProductBrandName}" widget-style="selectBox"
> required-field="true">
> <drop-down allow-empty="false">
> <entity-options entity-name="ProductCategoryRollup"
> description="${productCategoryId}">
> <entity-constraint name="parentProductCategoryId"
> operator="equals" value="brand" />
> </entity-options>
> </drop-down>
> </field>
> <field name="productCategoryId" title="${uiLabelMap.ProductStyle}"
> widget-style="selectBox" required-field="true">
> <drop-down allow-empty="false">
> <entity-options entity-name="ProductCategoryRollup"
> description="${productCategoryId}">
> <entity-constraint name="parentProductCategoryId"
> operator="equals" value="gender" />
> </entity-options>
> </drop-down>
> </field>
>
> The second question is how can we display the categoryName in the drop-down
> list? the problem is we are getting the category list from entity
> ProductCategoryRollup, but there is only categoryId, no categoryName in that
> entity, so how can we do that in the XML form definition?
>
> Thanks for your great help.
>
> Regards,
> Liu Xiangqian
>
> Wizitsoft Information Technology Ltd.
> www.wizitsoft.com | (86) 010-62670653 ext 614
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJx0sdrP3NbaWWqE4RAgVFAJ4of8NrS73Z+x+3m7uWO3llKVOETQCfeoTK
UYDnVhuEFdytCU5k2hGQbOc=
=Q5hG
-----END PGP SIGNATURE-----