on 09-04-2008 3:27 PM
Hi Gurus,
I have an issue in my mapping. Let's say I have a source structure:
><body>
> <maintag>
> <value>1</value>
> </maintag>
> <maintag>
> <value>2</value>
> </maintag>
><body>
I need to map maintag->target node but only in case if value eq 2. I used a Ifw/oElse function which creates target queue
SUPPRESS(grey)
SUPPRESS(cyan)
SUPPRESS(grey)
[]
[] (dark grey)
which is fine, because only 2nd context matches the condition. But no target node is being created!
Why? How to resolve this?
Thnak you!
Olian
Hi Olian,
Did you check the parent node mapping, it shud be mapped with the source node depending upon the occurence how many times you want to generate the output field.try your mapping in normal case for multiple occurence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use IfWithoutElse to check following conditon..
if value = 2(set context of value to root)--> target node
2nd input to ifWithoutElse would be maintag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try setting the context of your source node up one level (right click on node in mapping area to see Context option).
Keith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olian,
Changing the context to one level up is working for me.
Please refer to the following links:
http://farm4.static.flickr.com/3055/2828227942_e71da4a823_o.jpg
http://farm4.static.flickr.com/3134/2828228398_92f5ba41e0_o.jpg
Here the context of value was set to body in the sample DT i created.
regards,
venkat.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.