Suppose I have a DialogInput
, in which there is a Button
. The Button
can trigger another DialogInput
. Then, according to documentation, I have to add Method->"Queued"
to the Button
to avoid time out.
However, blocking dialog such as DialogInput
blocks queued evalutaion channel, which makes the Button
disabled.
The following cases are for demonstration.
DialogInput[Button["You have to wait after click", DialogInput[DialogReturn[1]]]]
This works but you need to wait for minutes before the dialog prompts up.DialogInput[Button["Doesn't work", DialogInput[DialogReturn[1]], Method->"Queued"]]
This does not work because the outerDialogInput
blocks the queued evalutaion channel.
Now, if I want a DialogInput
with a Button
and the Button
should trigger another DialogInput
, what should I do?
CreateDialog
insideDialogInput
$\endgroup$