cancel
Showing results for 
Search instead for 
Did you mean: 

UDF or Graphical Mapping

former_member185881
Active Participant
0 Kudos


Hello All

I have a requirement like below:

Source fields              

TXT                                 

AddTXT

Target Field

Node

I want to create Node as many times as AddTXT comes with value Concatinate(TXT+AddTXT). This I have achieved not a issue.

Now I want concatinate should happen only for 1st Node other nodes should contain only value of AddTXT.

e.g.

TXT = 001

AddTXT = James

AddTXT = Dheeraj

AddTXT = Rajesh

Result should be

Node = 001-James

Node = Dheeraj

Node = Rajesh

I believe using Graphical mapping this is not possible so how can I achieve this using UDF.

Thanks

Dheeraj Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Deeraj

it should be possible even with graphical mapping by using the index-function (can be found in the "statistic"-group). Combined with an if-then-else you should be able to achieve your desired mapping.

Kind regards,

Thomas

Answers (3)

Answers (3)

rcsegovia
Active Participant
0 Kudos

Hello Dheeraj,

Duplicate the target node and do the map required for first item under first one and the other into the second one.

regards,

Roberto.

Former Member
0 Kudos

Hi Dheeraj

Please use the below code.

In the UDF

TXT = var1

AddTXT = var2

Regards

Osman

javier_alcubilla
Contributor
0 Kudos

Hi Dheeraj

Try with index function

Check index = 1 for the concatenate

Regards