Can someone clarify how to perform a DialogInput operation within a Button?
I wrote some code for that but it's not working.
Button["Enter value",
DialogInput[{name = ""},
Column[{InputField[Dynamic[name], String],
Button["Hi", Dynamic[name]]}]]]
My problem is this — when I run the above code, the given text is displayed but when I click on the button, the actual operation is not being carried out.

DialogInputworks as you expect and want when run in the notebook and not from a button? – Rojo Jul 2 '12 at 18:38Method->"Queued"to the button, but even so, is that your only problem? – Rojo Jul 2 '12 at 18:53Method-> "Queued"?? – subbu Jul 5 '12 at 5:34