Avatar

Level 2

Hi, with your help I've almost completed my table. My table has 18 rows and it has add row btn. Is it possible automate numbering of the rows so that when I add rows they will have numbers automaticly. I've tried indexing but it doesn't work.

this.rawValue=this.parent.index

I'm trying to improve also a calculation script and for some reason I do get and error. Will you be able to let me know where the errror is. My script is:

form1.SubTable.Table2.Row1[0].Total::calculate - (FormCalc, client)
if (AmountNet > 0) then
     Total = AmountNet + VAT

else (AmountNet == 0) and (ExchangeRate > 0)
     Total = AmountForeign /ExchangeRate
endif

I've checked with the check script syntax and it is ok, but i still do get an error.

I've attached a picture of what I get a a final doc.

Thanks a lot for your help!!!