Skip to Content
0
Former Member
Feb 27, 2011 at 11:50 AM

context handling

19 Views

HI experts,

I have a mapping where i have a file with header Details and Items and inserting the same into DB

Header

Details

Details

Items

Header

Details

Details

Details

Details

items

items

I need a to set a counter for for header (i have given a counter and i am able to count the records of the header).where i need to identify the details with the other counter and same way separate counter for the items.

But my main concern here is i need to get the header count to the first field of details and items (when ever the header comes the count has to increase and the same count has to be sent to first field of details and items) to identify(sequence generator) this details is w.r.t this header..

When i try to map the header i mapped header to index and mapped to the target field.

in the same way i need to call the header >INDEX ->Target for the first field in Details and Items but i am unable to do that as header is the parent node to details and Items nodes.

Could any one please how i can call the header field mapped into the details and items.

Thanks and Regards,

Suma.