Cannot display two successive question dialogs in web-client

Hello,

I need to display two different question dialogs one after the other. In particular, the second one must show only if the answer to the first one was no (but that does not seem to be causing the problem in the first place).
The fact is, while the first dialog pops up and closes when I click the ‘no’ button, I receive an exception about the ‘questionDialog’ form already existing when I try to display the second dialog. I’ve done a little debug and it seems the form cannot be removed from the history and only in the web-client. The failed removal is in the svy_mod_dialogs_global_okClicked method, line 82 of the svy_mod_dialog globals.js file. Below you can fine a piece of code triggering the error.

function test()
{
	var _yes = i18n.getI18NMessage('svy.fr.lbl.yes')
	var _no = i18n.getI18NMessage('svy.fr.lbl.no')
	globals.svy_mod_dialogs_global_showQuestionDialog('Title1','Question1?',_yes ,_no)
	globals.svy_mod_dialogs_global_showQuestionDialog('Title2','Question2?',_yes ,_no)
}

And here’s the exception

The name 'questionDialog' already exists as another form
Wrapped java.lang.RuntimeException: com.servoy.j2db.persistence.RepositoryException: The name 'questionDialog' already exists as another form (A:\servoy_workspace\svy_mod_dialogs\globals.js#118)
	at A:\servoy_workspace\svy_mod_dialogs\globals.js:118 (svy_mod_dialogs_global_createNewForm)
	at A:\servoy_workspace\svy_mod_dialogs\globals.js:793 (svy_mod_dialogs_global_showQuestionDialog)
	at A:\servoy_workspace\ditta\forms\sicurezza_personale_tab.js:151 (dc_new)
	at A:\servoy_workspace\svy_nav_navigation\globals.js:3133 (svy_nav_dc_onClick)

I have tested your method, but it seems to work fine here. What version of the framework are you using?

Regards Sanneke

It’s the latest one, but I had some issues when integrating it with the previous one. It might have been that. I’ll try with a fresh install.