cancel
Showing results for 
Search instead for 
Did you mean: 

how to save value from a field and used it again in a java code

Former Member
0 Kudos

Hi

how to save value from a field and used it again in a java code.That i need to use in UDF.

Cheers

MMV

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

You may use Global Container Variables to store some value to be used in any UDF throughout the mapping. Need to use one UDF to set the Global Container value (at the target field mapping, where the output you want to save for future use) and then in other UDFs you can retrieve the same value from Global Container.

Regards,

Suddha

Former Member
0 Kudos

Refer this Blog:

For 7.1 use this :

Thanks

Farooq.

sunilchandra007
Active Contributor
0 Kudos

Hi,

Simply, u need to map the source field with the input of UDF. Inside the UDF , u can process the input and return the output.

Regards,

chandra

santhosh_kumarv
Active Contributor
0 Kudos

1. Map the field as an input to the java UDF.

2. Also u can store it as an global variable using the UDF.

Thanks

SaNv...