on 03-18-2010 9:43 AM
Hi,
Whats the best approach to map from
<resultset>
<row>
<CONTENTS>H1xxx</CONTENTS>
</row>
<row>
<CONTENTS>P1-1xxx</CONTENTS>
</row>
<row>
<CONTENTS>P1-2xxx</CONTENTS>
</row>
<row>
<CONTENTS>H2xxx</CONTENTS>
</row>
<row>
<CONTENTS>P2-1xxx</CONTENTS>
</row>
</resultset>
to
<Payment>
<header>
<CONTENTS>H1xxx</CONTENTS>
</header>
<items>
<CONTENTS>P1-1xxx</CONTENTS>
<CONTENTS>P1-2xxx</CONTENTS>
</items>
</Payment>
<Payment>
<header>
<CONTENTS>H2xxx</CONTENTS>
</header>
<items>
<CONTENTS>P2-1xxx</CONTENTS>
</items>
</Payment>
i.e. map Contents to header if it starts with H, to item if it starts with P
Payment consists of one header plus the items that follow it.
I can't seem to get the contexts in the target message correct
Hi Shawn!
have you looked at the "SplitByValue" in Context options - use Value Change.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for all responses.
Hi Baz!
Yes, I've looked at SplitByValue, could never get exactly what I wanted though.
Praveen, I'll give XSLT a go then.
Stefan, Unfortunately the source message is coming through the JDBC not the file adapter. I agree, a file would be much easier to handle with the advantage of the FCC options
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I can't seem to get the contexts in the target message correct
That is right. It is almost impossible with graphical mapping. You can use high sophisticated UFD, but if you have FCC in file adapter, you better go for complex structure with header and item.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use XSLT mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.