BizTalk Server General - Biztalk Jscript Scripting Functoid Not Holding Value

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > September 2005 > Biztalk Jscript Scripting Functoid Not Holding Value





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Biztalk Jscript Scripting Functoid Not Holding Value
Angela

2005-09-29, 5:58 pm

Hi,

I have built a scripting functiod for this looping problem:

line 1
line 1
line 1
line 2
line 2
line 3

The output should look like:

line 1
line 2
line 3

All of my looping and summarization for each line is working well in the
Biztalk map. The jscript scripting functoid is running error free. Just to
make sure the inputs are numbers(comparing apples to apples) I built a
scripting functoids to make sure the inbound line numbers are number i.e.
line1 = Number(line1).

Within the primary scripting functoid I define a hold variable (i.e. var
line_hold = Number(line_hold).

Then after the first loop iteration I make line1 = line_hold.

On the next iteration of the loop, I check to see if the next line 1 is = to
line_hold....line_hold - is not ever holding the previous iterations value.
Therefore the comparison is always not equal and the summarization of the
line 1 lines is not working.

Any ideas on why the line_hold value is not holding the previous loop's value?

Thanks....

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com