Issue corresponding to represent value's of two different entities field

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

Issue corresponding to represent value's of two different entities field

Amit Patidar
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
Reply | Threaded
Open this post in threaded view
|

Re: Issue corresponding to represent value's of two different entities field

Jacopo Cappellato
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
>

Reply | Threaded
Open this post in threaded view
|

Re: Issue corresponding to represent value's of two different entities field

Amit Patidar
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 <[hidden email]> 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
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Issue corresponding to represent value's of two different entities field

David E Jones

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 <[hidden email]> 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
>> >
>>
>>
>