That does work, but I am trying to get the result in a different dialog. So when someone, for example, clicks the "add" button in dialog 1, it will create dialog 2 (which asks for certain info), and return the info. That is what I'm trying to accomplish.