cancel
Showing results for 
Search instead for 
Did you mean: 

mapping issue

Former Member
0 Kudos

Hi ,

i am not able to fix this at all.

in my target (complex structure)

t_s header of t_c, t_r

looks like

t_s 0--ub

a 0--1

b 0--1

t_c 0--ub (item of t_s)

x 0--1

y 0--1

same for t_r

source struct

root

header1

id1

t_s (item of header1) 0--ub

ref

t_r (item of header1) 0--ub

ref

object(item of header1) 0--ub

a 0--1

b 0--1

x 0--1

y 0--1

Problem is :: in one case when t_s occurs 3 times and

1.item t_r is suppose to occur 2 and item t_c is suppose to occur 4 times on t_s first occurence, but the nodes inside t_s are not created at all.

but in data flow editor queue entries are displayed correctly,

2.not taking case of t_s 2nd and third occurence .

my mapping

id1remveContex-EQUalsifWthOutEls-t_s

ref--remveContext /

any idea, why is it so? or wrong somthng wth mapping?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member1009864
Participant
0 Kudos

hi,

u can use node function from graphical mapping or u can go for a java mapping for that

Thanks

Diwakar Chaube

Former Member
0 Kudos

Hi,

Map like below..

id1--


EQUalscreateIf---t_s and t_r.

ref--remveContext-SplitByValue(ValueChange)

Regards,

Prakasu.M

former_member206760
Active Contributor
0 Kudos

map t_s(change context to the top level..i.e message type) of source to t_s of target...

map each line item of source ( say ref...cahneg context to lowest level) to line item of target ( say a )

Former Member
0 Kudos

hi tarang

but i ahv to check if ref and id1 are equal then only create target node,

so in this case?

Former Member
0 Kudos

as u said t_s shud b mapped to t_s after chanmgng context to root,

by this if occurences are 3 times, it occurs 3 times but only 1 occur has its item else 2,3 occurence dont hav

former_member206760
Active Contributor
0 Kudos

play with the context of item and map to item of target..

context of item should be at the lowest level

Former Member
0 Kudos

hi tarang,

My target nodes which is item of t_s are not created at all,

t_s occurs 3 times, none of the times its items are created/

former_member206760
Active Contributor
0 Kudos

can u elaborate more on the problem..may be u can send a screen shot thru flickr