I eventually found a post with the answer
I use #(trans.dataView(‘DonePartTran’).row)# to get my current row number