cancel
Showing results for 
Search instead for 
Did you mean: 

Use node function to produce diff root everytime the source node change

Former Member
0 Kudos

Hi all

I have a source structure like this :

<DETAIL>

<IDENTIFIER>D</IDENTIFIER>

<Format>1</Format>

</DETAIL>

<DETAIL>

<IDENTIFIER>D</IDENTIFIER>

<Format>1</Format>

</DETAIL>

<DETAIL>

<IDENTIFIER>D</IDENTIFIER>

<Format>1</Format>

</DETAIL>

and the target is

<ZE1DETAIL SEGMENT="1">

<RECTYPE>1</RECTYPE>

<FORMAT>a</FORMAT>

</ZE1DETAIL>

<ZE1DETAIL SEGMENT="1">

<RECTYPE>2</RECTYPE>

<FORMAT>a</FORMAT>

</ZE1DETAIL>

<ZE1DETAIL SEGMENT="1">

<RECTYPE>3</RECTYPE>

<FORMAT>a</FORMAT>

</ZE1DETAIL>

i want my target node to have a counter 1 to n where n is the number of detail tag occurring in the source node.

How to do it ??

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

detail - removeContexts - index - splitByValue - RECTYPE

Answers (1)

Answers (1)

Former Member
0 Kudos

Use Index standard function, you can achieve your requirement.

Regards

Liang

Former Member
0 Kudos

Thnks all

It worked in this case. have given the points to all.

I have posted one more question.

Could you help me solving the same.

Regrds

Naina