mark_h
5th December 2009, 02:50
What I had was a multi-occurence plus view field form. I had a table with 6 fields in the index. I added a 7th field and started getting the attached error. Before I started getting the error I had all 6 fields of the index on form 1 and only 5 of the fields on form 2. The forms are packed and I did not realize this. Everything worked great.
Now after I added the 7th field on form 1 when I hit the next or prev set button I got this error. On form 2 if I hit prev or next set it worked - the difference was that the 7th field of the index was on the form. So I went to the first form and added it to the form as a hidden 1 char field. Form 1 started working. BUT THEN form 2 started getting this same error(note at first form 2 worked). That was when I discovered the 6th field on the index was not on it - so again I added it as a hidden field of 1 char length(both 6th and 7th are char strings). Now both forms work again.
Now the question - the error makes it look like a coding error, but I even removed the script and still got the error. I thought you did not have to have all the index fields on all the forms????? The 7th field was added to the index so the records sorted correctly(7th field is a date/time stamp string field) and the first 5 fields of the index are what make the index unique and the 6th and 7th just to get them sorted correctly. Is there some internal kind of link between multiple forms on a session???
I guess in the past I have always used the same index fields on all the forms and that is why I have never seen the problem. Really just trying to understand what I might be missing on this. Thanks for any info.
Now after I added the 7th field on form 1 when I hit the next or prev set button I got this error. On form 2 if I hit prev or next set it worked - the difference was that the 7th field of the index was on the form. So I went to the first form and added it to the form as a hidden 1 char field. Form 1 started working. BUT THEN form 2 started getting this same error(note at first form 2 worked). That was when I discovered the 6th field on the index was not on it - so again I added it as a hidden field of 1 char length(both 6th and 7th are char strings). Now both forms work again.
Now the question - the error makes it look like a coding error, but I even removed the script and still got the error. I thought you did not have to have all the index fields on all the forms????? The 7th field was added to the index so the records sorted correctly(7th field is a date/time stamp string field) and the first 5 fields of the index are what make the index unique and the 6th and 7th just to get them sorted correctly. Is there some internal kind of link between multiple forms on a session???
I guess in the past I have always used the same index fields on all the forms and that is why I have never seen the problem. Really just trying to understand what I might be missing on this. Thanks for any info.