How do we grab data in "After Every Record" Event Handler ?

Last post 02-04-2010 1:27 PM by jdd. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-04-2010 3:02 AM

    How do we grab data in "After Every Record" Event Handler ?

    Hi,

    I am preparing an inbound map. ( conversion from edi 837 claims file to database tables)

    kindly suggest me, how I can resolve the below issue.

    Issue:
    I need to print data from the below provider loops to the target database.

                    2420A
                    2420B
                    2420C
                    2420D
                    2420E
                    2420F

    Currently I am using "After Every Record" event handler to print each of the above loop's the data. But I have observed that, the previous loop's data is printed to the target database in the current loop's event handler.

    For eg:  In the 2420B Afterevery record event handler, the 2420A's data is present. So in 2420B's event handler, 2420A's data is printed to the database. If I proceed in this way, I will be missing the last occurred loop's data ( i.e. 2420F in the above loops ). After 2420F loop, there is no mandatory segment so that I can grab 2420F's data in that mandatory segment's event handler.   Please suggest me how can I resolve this. or How can I grab the last loop's data since there is no mandatory segment after 2420F loop.

    Thanks & Regards,
    Mahendra Babu.

  • 02-04-2010 1:27 PM In reply to

    • jdd
    • Top 50 Contributor
    • Joined on 04-04-2005
    • Posts 172

    Re: How do we grab data in "After Every Record" Event Handler ?

    Your ClearMapPut of any group of records (loop) has to be placed in the next mandatory place. There probably will be many.

Page 1 of 1 (2 items)