Re: Users - How does <#if partyRow.containsKey("lastName")>work on Party entity?

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

Re: Users - How does <#if partyRow.containsKey("lastName")>work on Party entity?

Vinay Agarwal

Never mind. It gets name from ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(partyRow, true)} call.

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Vinay Agarwal
Sent:
Wednesday, March 15, 2006 2:53 PM
To: 'OFBiz Users / Usage Discussion'
Subject: [OFBiz] Users - How does <#if partyRow.containsKey("lastName")>work on Party entity?

 

Hello,

I am generating a list of Party entities with a statement like the following

            EntityListIterator pli = delegator.findListIteratorByCondition(“Party”, null, null, fieldsToSelect, sort, findOpts);

The corresponding ftl has the following statements:

              <#list partyList as partyRow>

                      <#if partyRow.containsKey("lastName")>

                                    ……..

                      </#if>

              </#list>

The surprising part, to me, is that it does find lastName if the Party is a Person type although the lastName is not part of Party! How does this work?

 

Thanks in advance.

Vinay Agarwal


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users