on 06-30-2010 4:53 PM
Hi guys,
I have no idea on JAVA, can you please give me one UDF sample for my requirement.
there is one field is getting value on source side A or B or C.
If field value is A - then output value AAAAA
if field value is B - then output vlaue BBBBB
if field value is C - then output value CCCCC
can i write UDF like
String mergeONE(String var1, String var2, String var3, Container container)
{
if (var1 != null)
return var1;
else
if (var2 != null)
return var2;
else
return var3;
}
your input is really great !!
Many thanks
San
Hi San,
You can achieve this functionality using standard if else functions. You dont need a udf for this.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many thanks guys, points alloted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai if you want concatenate value 4 times using UDF
then
String mergeONE(String var1, String var2, String var3, Container container)
{
if (var1 != null)
return var1var1var1var1var1+var1;
else
if (var2 != null)
return var2var2var2var2var2+var2;
else
return var3var3var3var3var3+var3;
}
we can do this using using graphical mapping it self.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi San,
Use Fixed Value Mapping from standard functions itself
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.