When launching a dialog using dijit.Dialog in an Xpage in the Notes client the dialog shows fine but then diappears after about 10 seconds.
Can this be controlled?
When launching a dialog using dijit.Dialog in an Xpage in the Notes client the dialog shows fine but then diappears after about 10 seconds.
Can this be controlled?
Subject: Are you using it on an event with simple actions?
My experience is if one pops a dijit dialog on an event that contains simple actions, those simple actions continue without waiting for the dialog. So if you do , for example and pop a dialog asking if they want to save, the dialog appears, the save document happens, then the dialog disappears without interaction.
The only way I could fix this was to programatically have the dialog click the “Save” button as part of the processing function. Then it waits to save.
Your mileage may vary.
Hope this helps…
Subject: Xpage Dialog
Hi Thanks for the response.
The dialog div is created onLoad and hidden. A repeat control displays view entries as separate rows, clicking on the row populates the dialog divs contents via client side JS and then displays the dialog using a show command.
The dialog appears on screen for about 2 seconds on a quick machine before disappearing.
The xpage is being used in the notes client.
Subject: You didn’t say if simple actions are used…
I read that the div is populated using CSJS and then shown, when a click is done, but you didn’t indicate if that click event also has a simple action associated with it -in addition- to showing the dialog. Perhaps I should assume that the CSJS that pops the dialog is all there is, but alas, I have not assumed that.
If the click event does also have a simple action, you may have to separate the dialog from the simple action. My experience is that simple actions are run essentially immediately regardless of what the dijit dialog is doing. If others experience something different I’m sure Russell would love to hear it; my experience with nearly any technology seems to be unique, as often as not, or at least that too is my experience.
If the event does not also have simple actions associated with it, I have no pearls of wisdom. Hopefully another will.
Hope this helps…
Subject: There are no simple actions at all
I didnt mention this as I haven’t used any simple actions.
The Xpage displays selected docs from a view through a repeat control, this produces a table and when the table row is clicked the dialog is displayed.
The create_dialog code is the standard stuff posted on many users examples.
I am going to recreate and cut out various elements to try and identify what is causing this.
Subject: Fixed It!
On looking at the source there was a couple of parameters set for the onclick event, not by me I hastern to add.
One of there was a refresh=“xxx”. The solution was to remove this parameter completely.
All working now
Subject: Interesting. Thanks!..