on 05-20-2014 12:10 PM
Hi,
I have a requirement where Item (i=1..n) need to get mutplied with Quantity(i=1..n) against it and find the summary of it.
Sum[i]=Item[i]*Quantity[i] we want the output to be like this.
Sum will get repeated.
Please help.
Hi Shikha,
I don't know your source message structure but you could do a UDF with all values of a queue and code like this:
for(int i = 0; i < Item.length; i ++)
result.addValue(Item[i] * Quantity[i]);
The assumption here is that both Quantity & Item queues will be filled with the same number of values.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.