Hi Prasanthi,

Why you use entity-condition instead of entity-one. Use entity one for retrieve record basis of primary key.

comment inline :
prasanthi_ofbiz wrote:
Hi Deepak
I have written below code inside service implementation for loading the
parent entity then iterated with list until my condition was satisfied. Is
it a correct approach of any other suggestions?


<entity-condition entity-name="FinAccount" list="finAccountList">
                        <condition-expr field-name="finAccountId"
from-field="newEntity.finAccountId" />
</entity-condition>
                <iterate entry="finAccount" list="finAccountList">
            <if>
                <condition><if-compare field="finAccount.finAccountId"
operator="equals" from-field="newEntity.finAccountId"/></condition>

above condition does not make sense.
                <then><set field="createAcctgTransEntryParams.glAccountId"
from-field="finAccount.postToGlAccountId"/></then>
</if> </iterate>

But the value of createAcctgTransEntryParams.glAccountId  is null. Please
suggest me what's the mistake
Regards,
Prasanthi


Regards
--
Deepak Dixit
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype Id :- deepakdixit

Reply via email to