plugins.dialogs

I upgraded to RC2 this morning and have noticed that my dialogs aren’t working correctly. Here is my code:

var diag = plugins.dialogs.showQuestionDialog("Change to Standard","Would you like to change this to a Standard finding for " + varName.toUpperCase() + "?","OK", "Cancel");
if(diag === "OK")
{
      //Do stuff
}

When I look at this in debugger, diag = “uninitializedValue”. I loaded up beta1, and it works fine. Bug in RC2? I didn’t use RC1 so don’t know when it quit working.

Thanks!

Hi Nicholas,

So after the dialog comes back you get that ‘value’ ?
Also, did you file a bugreport in Servoy’s issue tracker?

Yes. When the dialog appears I hit “OK”, then I get that value. I was wanting to see if anyone else was experiencing this before I made a case. Knowing my luck, it could just be me :lol:

Please file a case, preferably with a small sample, as this looks like a bug in RC2.

Paul

i reproduced it and fixed it for RC3