Hi Prasanthi,
you should use <if-not-empty field="finAccount"/>
instead of<if-compare field="finAccount.finAccountId" .../>
and make sure if "postToGlAccountId" holds any value or not.
for the debuggin purpose you can use <log level="info" message="${foo}"/>
I am not sure but for your previous code ?snippets it seems that you are
not set the value for "postToGlAccountId" and try to retrieve it .
Regards
--
Deepak Dixit
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype Id :- deepakdixit
prasanthi_ofbiz wrote:
Hi Deepak,
Even though I have written below code also giving same problem
<set field="tempFinAccountId" from-field="newEntity.finAccountId"/>
<entity-one entity-name="FinAccount" value-field="finAccount">
<field-map field-name="finAccountId"
from-field="newEntity.finAccountId"/>
</entity-one>
<if>
<condition>
<if-compare field="finAccount.finAccountId" operator="equals"
value="tempFinAccountId"/>
</condition>
<then>
<set field="createAcctgTransEntryParams.glAccountId"
from-field="finAccount.postToGlAccountId"/>
</then>
</if>
Reagards,
Prasanthi