Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: UDF (Queue), help me with this error.

$
0
0

Hi Vijay,

 

Please make sure that the 'Execution Type' of your UDF is set to 'All Values of Queue'.

 

Please make sure that you didn't add any extra open/closed braces.

 

 

I executed your UDF and it is perfectly working fine.

 

udftest.jpg

 

I suggest you to change the UDF like given below so that you can improve its functionality so that it will work for any no. of values in the queue (not just 10).

 

int var1Length = var1.length;
int input[] =  new int[var1Length];  int k=10;  int j[]= new int[var1Length];
for(int i=0; i<var1Length; i++)
{
input[i] = Integer.parseInt(var1[i]);
result.addValue(j[i]=input[i]+k);
result.addContextChange();
}

Viewing all articles
Browse latest Browse all 9080

Trending Articles



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