Trouble assigning values to Global Variables

I have a simple method that creates rows in a related table and then assigns values to some of the columns The method uses a relationship that has a global variable as a primary key to assign values to some of the columns. I change the value of this global variable several times as the method runs. After creating the rows and assigning values to the columns the results are displayed in a form using a list view.

The first time I run the method everything works and the data is displayed in the list view. If I try to run the method a second time it gives an error message (Error while executing emthod with name SignBill, id 12122) when I get to the point where I am attempting to assign a new value to the global used as a primary key in a relationship. At this point my entire solution is unable to change the value of any global variable in any method. If I run the method without displaying the result in the list view form, I do not observe this strange behavior. Any ideas?

John McCann

SQL Server
Windows
2.0 rc6

Could you verify this on Servoy 2.0 rc7 (rc6 had a type check, rc7 has a type conversion which is easier for you as developer)

Jan,

I downloaded RC7 and ran the method. On the first run it gave me an error message letting me know that on one of the lines I was trying to assign a string to a non global numeric field. Apparently this was manifesting with problems assigning values to globals on a second run of the method? Regardless, my bug is gone. RC7 also pointed out a couple of similar problems in my solution.

Apparently the error reporting seems to be improved in RC7!

Thanks

John McCann