Should work this way. For me it does.
var cInput = xfa.host.response("Enter number of rows you want to add:", "Add rows", "1", false),
oRow = this.parent.parent,
nIndex = oRow.index,
cDate = oRow.dated.rawValue;
n = parseInt(cInput, 10) > 0 ? parseInt(cInput, 10) : 1,
i = 0;
if (cInput !== nu...