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
|

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

Vinay Agarwal

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