cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to check blank and 0 values and create target idoc field

jose_augastine3
Active Participant
0 Kudos

Hi

My requirement is I need to check blank and 0 values and create target idoc field only if they are not blank or 0

Could someone please help. Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Why do you want a UDF for this?

You can use the standard functions to validate it right?

source field -> equals -> constant[] -> not ->  createif -> target field

you can add OR condition to check for "0"

If you really want a UDF then

for( int i=0;i<var1.length;i++)

{

if((!(var1[i].equals(""))) && (!(var1[i].equals("0"))))

result.addValue(var1[i]);

}

jose_augastine3
Active Participant
0 Kudos

Thanks Hareesh

Answers (0)