cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Query

Former Member
0 Kudos

Hi All,

I am implementing the message mapping.

Node is the target node under which the element is Element.

The mapping logic should be like:start with 1 and add 1 for each additional Node segment.

Means,1 should be added with each occurrence of the Node.

Can you please help me in implementing the logic?

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

This can be done easily if use UDF, you have to increment counter to +1.

Regards,

Raj

Former Member
0 Kudos

Hi Raja,

Thanks for the reply.

Can you please tell me the code for UDF?

Thanks in advance

stefan_grube
Active Contributor
0 Kudos

You need no UDF. You can use statistic function index

Former Member
0 Kudos

Hi Stefan,

Thanks for the reply.

You need no UDF. You can use statistic function index

How can I use it?

Thanks in advance.

stefan_grube
Active Contributor
0 Kudos

I think in your scenario, you should better use arithmetic function counter

You can assign counter to the target node without source.

Former Member
0 Kudos

Hi Stefan,

Thanks for the reply.

Node is the target node under which the element is Element.
The mapping logic should be like:start with 1 and add 1 for each additional Node segment.
Means,1 should be added with each occurrence of the Node.

How to implement it using counter?

Thanks in advance

stefan_grube
Active Contributor
0 Kudos

> How to implement it using counter?

You will figure out while doing it.

rajasekhar_reddy14
Active Contributor
0 Kudos

Counter(standardfunction)------>target node.

click on counte , it will show intial value and increment value , in your case 1,thats it. test your mapping with multiple records.

Regards,

Raj