on 09-24-2008 11:09 PM
hi all
I need a favor.
I need a java udf : I will take values in a context function and if second value in array does not exist ,I return a blank ,else I return the second element within the array.
Thnx
Hi,
Try the UDF I have given below. I gues sthis is your requirement.
if(a.length < 2)
{
result.addValue("");
}
else if(a.length ==2)
{
result.addValue(a[1]);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You don't required UDF. You can use SplitByValue(Each value) and Collapse Context to solve this problem.
InputValue --> SplitByValue(Each value) --> CollapseContext.
Regards,
Rohit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi folks
1) So in this case ,i dont need to iterate? no for loop needed?
Thnx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.