Yes, it's a bit of a work around.



You need to create your On Submit client script in the global scope, but apply it to your scoped application's table. You can use getXMLWait() normally there.



Am I not understanding your requirement correctly?