level is showing as IV because tpe is 0. The code above does not change tpe so I am not sure why is has ruined your calculation. Can you post what you have in your calculation event?
in the exit event of "tpe" put:if ($ > 1000 and $ <= 1985) thenlevel = "I"elseif ($ > 850 and $ <= 1000) thenlevel = "II"elseif ($ > 550 and $ <= 850) thenlevel = "III"elseif ($ <= 550) thenlevel = "IV"else level = ""endif(this assumes the user is entering the amount in the tpe cell. If it is worked...
the repeating rows when you reopen the form probably have something to do with the binding. Under Object > Binding just make sure the 'Repeat Row for each data item' box is only clicked on the actual row you are repeating and not the whole table.
Were you using java or formcalc when you got the error? I recreated your table and the code works in formcalc.In regards to the insertIndex working in the first row I think that may be because you are always referencing the first row (R_Activity).