You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Amit Patidar <am...@gmail.com> on 2007/06/08 17:23:41 UTC
Issue corresponding to represent value's of two different entities field
I am facing a problem that i have to show in a single drop-down value's of
two different entities in form widget
can anyone suggest me solution
Re: Issue corresponding to represent value's of two different entities
field
Posted by David E Jones <jo...@hotwaxmedia.com>.
If you want the values from different entities to be separated in the drop-down (which is usually what we do, and add a prefix for each section in the description attribute so the user knows which is which) just use 2 entity-options tags, one right after the other.
There are other ways, but that is the easiest and most straightforward.
-David
Amit Patidar wrote:
> Here are the details that
> From the ProductScreens.xml
>
> <entity-condition entity-name="PartyRole" list-name="organizations"
> use-cache="true">
> <condition-expr field-name="roleTypeId"
> operator="equals" value="INTERNAL_ORGANIZATIO"/>
> </entity-condition>
> This screen include the form below
>
>
> From the form
> <field name="organizationPartyId" title="${uiLabelMap.ProductOrganization}
> :">
> <drop-down allow-empty="false">
> <list-options key-name="partyId" list-name="organizations"
> description="[${partyId}]" list-entry-name=""/>
> </drop-down>
> </field>
>
> Here from above code i wanted that in the " description="[${partyId}]" "
> it should be some thing like " description="${groupName}[${partyId}]"
> " where group name belongs to PartyNameView
> table
> ie i wanted to know the way how we can display the value's of two
> different
> entities in a single
> drop-down
>
>
>
>
>
> On 6/8/07, Jacopo Cappellato <ti...@sastau.it> wrote:
>>
>> Amit,
>>
>> could you please provide more details?
>>
>> Jacopo
>>
>> Amit Patidar wrote:
>> > I am facing a problem that i have to show in a single drop-down
>> > value's of
>> > two different entities in form widget
>> > can anyone suggest me solution
>> >
>>
>>
>
Re: Issue corresponding to represent value's of two different entities field
Posted by Amit Patidar <am...@gmail.com>.
Here are the details that
>From the ProductScreens.xml
<entity-condition entity-name="PartyRole" list-name="organizations"
use-cache="true">
<condition-expr field-name="roleTypeId"
operator="equals" value="INTERNAL_ORGANIZATIO"/>
</entity-condition>
This screen include the form below
>From the form
<field name="organizationPartyId" title="${uiLabelMap.ProductOrganization}
:">
<drop-down allow-empty="false">
<list-options key-name="partyId" list-name="organizations"
description="[${partyId}]" list-entry-name=""/>
</drop-down>
</field>
Here from above code i wanted that in the " description="[${partyId}]" "
it should be some thing like " description="${groupName}[${partyId}]"
" where group name belongs to PartyNameView
table
ie i wanted to know the way how we can display the value's of two different
entities in a single
drop-down
On 6/8/07, Jacopo Cappellato <ti...@sastau.it> wrote:
>
> Amit,
>
> could you please provide more details?
>
> Jacopo
>
> Amit Patidar wrote:
> > I am facing a problem that i have to show in a single drop-down
> > value's of
> > two different entities in form widget
> > can anyone suggest me solution
> >
>
>
Re: Issue corresponding to represent value's of two different entities
field
Posted by Jacopo Cappellato <ti...@sastau.it>.
Amit,
could you please provide more details?
Jacopo
Amit Patidar wrote:
> I am facing a problem that i have to show in a single drop-down
> value's of
> two different entities in form widget
> can anyone suggest me solution
>