Every second DIALOG is empty in Safari

Forum to discuss the Web client version of Servoy.

Every second DIALOG is empty in Safari

Postby cotas » Thu May 30, 2019 9:43 pm

Hello everybody,

in our Application every second DIALOG is empty, but only in Safari. Our Servoy Version : 8.2.1.3105

Our code:

Code: Select all
   

if (utils.hasRecords(foundset.kurse_to_termine)){
      var vNeuErst = globals.DIALOGS.showQuestionDialog("Bitte entscheiden","Sollen die Termine neu erstellt werden?","Ja","Nein")
      if (vNeuErst!="Ja") {
         return
      }
      if (utils.hasRecords(foundset.kurse_to_termine)) {
         var vLoeschen = globals.DIALOGS.showQuestionDialog("Bitte entscheiden","Sollen die vorhandenen Termine gelöscht werden?","Ja","Nein")
         if (vLoeschen=="Ja"){
            foundset.kurse_to_termine.loadAllRecords();
            foundset.kurse_to_termine.deleteAllRecords();
         }
      }
   }



First DIALOG:

Image

Second DIALOG:

Image

Error Code:

ERROR com.servoy.j2db.util.Debug - Can't remove dialog form 'C6179E5F740B48E29E8B41ED35EED6CC' from history

Can you help me?
cotas
 
Posts: 5
Joined: Thu Sep 29, 2011 3:02 pm

Re: Every second DIALOG is empty in Safari

Postby Andrei Costescu » Tue Jun 04, 2019 8:53 am

From the error message I imagine that the code that shows that dialog might be trying to reuse/modify the form that it builds via SolutionModel to show the question - but fails to do so.
Did this ever work on Safari? If so what changed since it used to work? (Servoy version / Safari version / mod-dialog module version)
You are using Web Client and mod-dialog from ServoyForge right?

One idea - if you can't figure out what exactly is the reason by debugging mod-dialog and you can reproduce it in a small sample solution is to file an issue here
If you find that this used to work in a previous Servoy version with the same Safari and mod-dialog module versions you can create a case here.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 951
Joined: Tue Jun 26, 2007 3:14 pm

Re: Every second DIALOG is empty in Safari

Postby Andrei Costescu » Tue Jun 04, 2019 9:15 am

Btw. the JSDoc on history.removeForm(...) says:
Removes the named form item from the history stack (and from memory) if not currently shown.
Will return false when the form can't be removed, this can happen in certain situations:
1> The form is visible,
2> The form is executing a function (is actively used),
3> There are references to this form by a global variable/array,
4> If the form has a separate foundset with edited records that can't be saved (for example autosave is false)


Maybe this helps you debug.

Hmm I looked a bit at that module's code. I think the only way that it can use and try to remove from history a form that has an uuid-like-name is if you also previously have shown a form via globals.DIALOGS.showFormInModalDialog and you have not closed that one yet... That module might not currently support showing various question/... dialogs on top of a globals.DIALOGS.showFormInModalDialog show form like that.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 951
Joined: Tue Jun 26, 2007 3:14 pm

Re: Every second DIALOG is empty in Safari

Postby Andrei Costescu » Tue Jun 04, 2019 2:17 pm

Also this case fixed something that is very similar: https://support.servoy.com/browse/SVY-12841
Can you update to latest release of Servoy (2019.03.1) and see if that fixes it?
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 951
Joined: Tue Jun 26, 2007 3:14 pm


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 1 guest