UI recording and play back issues

Hi,
You just has to pass "‘+variable+’"like this
ex:
“webctrl idx=‘2’ parentid=‘table_*’ tableRow='”+variable+“’ tag=‘I’ />”
use assign activity and pass the following to increase the counter.
int variable =variable +1
refer this