 |
|
 |
Subject: Stuck on dijit dialogs again... |
 |
 |
 |
Product Area: Domino Designer on Eclipse (DDE) |
 |
Technical Area: Functionality |
 |
Platform: Windows |
 |
Release: 8.5.1 |
 |
Reproducible: Always |
 |
 |
 |
 |
- Lotus support thinks my dijit dialog code is preventing server-side actions from firing. it's conceivable, so I'm back to square on on dojo/dijit dialog usage. I'm searching here and the web and finding exactly the same resources I found three months ago, which aren't illuminating the issue any further.
- Here's what I'm doing. I have buttons that pop dialogs to get one or more bits of data from the user. If the user clicks "Cancel", simply hide the dialog and do nothing. If the user clicks "Ok", put the one or more bits of data in known fields on the current XPage, then save it. Sounds simple.
- I'm using a saveDocument simple action to perform the save because that's the only way I know to get postSaveDocument to fire, which is critical. If I do a client-side submit() I never see pSD go off, or I'd use that.
- So of necessity the button is a mix of CS & SS - the CS makes sure the dijit dialog has been created, doing that if it's not there for some reason, then it does a show() on the dialog and it's done. The SS is the saveDocument simple action.
- The problem is the CS does not block for the dialog. Instead the code runs through to the show() and keeps on going so it's impossible to return true or false to allow or deny the save. So if I default to false it never saves, and if I default to true it runs the save immediately, which dismisses the dialog.
- I can only deduce I'm missing something trivially simple, yet countless hours of research have somehow missing it with alarming consistency. Could some toss me a clue?
Thanks for your time...
 
Feedback number DGIE86RL5T created by ~Holly Zekhipisonnivu on 06/25/2010

Status: Open
Comments:

Stuck on dijit dialogs again... (~James Brewever... 25.Jun.10)
. . I'll waddle in .... (~Rebecca Brefoo... 25.Jun.10)
. . . . Thanks Judy... (~James Brewever... 29.Jun.10)
. . . . I must be missing something... (~James Brewever... 30.Jun.10)
. . . . . . Maybe a simple example might help .... (~Rebecca Brefoo... 30.Jun.10)
. . . . . . . . The client-side JS for the dialog (~Rebecca Brefoo... 30.Jun.10)
. . . . . . . . I'm still a no-go at this station..... (~James Brewever... 30.Jun.10)
. . . . . . . . . . Ach, I feel your pain ... (~Bella Elfreema... 30.Jun.10)
. . . . . . . . . . . . I'm game... (~James Brewever... 30.Jun.10) |
|  |
|