on 12-27-2007 1:14 PM
Hi experts,
Iam using an UDF to check whether values for any of the fields in any of the records are missing. If so i have to skip perticular record. UDF is allowing the records which are without any missing values. But whenever a field with a missing comes its raising exception.
The code Iam using in UDF is
//write your code here
boolean flag = false;
for(int i=0;i<a.length;i++)
{
String temp[] = a<i>.split(" ");
for(int cnt=0;cnt<temp.length;cnt++)
{
if(!(temp[cnt].equals( null )))
{
flag = true;
}else
flag = false;
if(flag = true)
result.addValue(a<i>);
} }
If the flag is false I want it to skip that record and continue with next one.
Thanks&Regards,
Reyaz.
Hi Reyaz,
you need more than only a UDF. first see that the content of the incoming element is set right. There should be no context change! After the UDF you need a "split by value (each value)". After that you need a "exists".
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U could try the following functions inside the loop which suppresses the value in Chirag's code:
result.addValue(SUPPRESS) OR resultlist.addValue(SUPPRESS)
OR
ResultList.Suppress(Suppressed Value)
Regards,
Jyotika.
Pls reward points if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.