Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

UDf suppressing values

$
0
0

Hi ,

 

I wrote one UDf to check a field out of 3 fields  existence and pass the value which is coming. It is working fine for single value.

 

But when I tired to send multiple values it is suppressing the values.

 

Any ideas to resolve this: Please see the screesnhsot for refrence:

 

udf is below: with 3 input variables  . If multiple values are coming i do not want to suppress.

 

 

String field = null;

 

if (var1 != null)

{

field = var1;

}

else if (var2 != null)

{

field = var2;

}

else if (var3 != null)

{

field = var3;

}

 

return field;


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>