cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping issue

Former Member
0 Kudos

Hello Experts,

I need to do some mapping changes in XI.

Source

P1

-


Child1 ---1...unbounded

--- Child2

P2

...child1

...child2

... child3

I need to map the data of every first child of every parent....how should i do.....

Thanks

Vishal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

P1

----Child1 ---1...unbounded

--- Child2

P2

...child1

...child2

... child3

U need a small UDF here...

Child1>UDF>Target Node.

UDF will be,

all values of context.

Input: child1,result,container

output: void

-


result.addValue(child1[0]) // only 1 line of code.

-


I hope this will solve ur prblm... If still any prblm,pl post the prblm in detail

Babu

Former Member
0 Kudos

Hello ,

Let me explain in detail.

All child segments are multiple ship-to addresses ...I need to map all the addresses to target

I need to mark first address ( child1 of every parent ) as standard address in target field.

I have created the UDF to decide first child....but i guess counter is intialised for each mapping.

for (int i =1;i<=city.length;i++)

{

result.addValue("COUNTER=" + i );

}

Thanks,

Vishal

Former Member
0 Kudos

Issue is resolved...with the help of this weblog

/people/sunil.ojha5/blog/2008/01/22/sequence-number-generation-mapping-pattern-in-pi

Thanks,

Vishal