From the looks of your code, you're probably passing in some sort of object (like an instance of a subform) which is an object. If you did an app.alert (x) in your method you'd probably see something like "object xfaObject[0]".Try :var x = String.concat("'", param1.name, "[", j, "]'");