Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

I'll waddle in ....

Hasn't Jeremy Hodge done this sort of thing in the XPages Blog?
http://www.xpagecontrols.com/xpagesblog.nsf/XPages-Compatible-Dojo-Dialog-Reusable-Component.xsp

It sounds like you want to do something similar except he's launching his dialog from a link.
His [OK] button does a saveDocument like you're doing & a partial refresh. Maybe the trick is in his client-side code with the "return true".

// this client side script will run before the partial refresh executes. Here
// we will move the contents of the partial refresh back to the proper place,
// and destroy the dialog so that it can be garbage collected, and the
// registry will not prevent it from getting re-created on the next user-edit.
var dialog = dijit.byId('sampleDialogEditor');
var editRegion = dojo.query('[id$="editDocumentRegion"]', dialog.containerNode)[0];
dojo.style(editRegion, { display: 'none' });
dojo.query('[id$="refreshDocumentRegion"]')[0].appendChild(editRegion);
dialog.hide();
dialog.destroy(false);
// instruct the partial refresh to continue to save the document.
return true;

I haven't tackled this sort of thing yet ... I will need to soon, so hoping I can follow Jeremy's method.
Sorry I couldn't be more help.


Feedback response number JKIN86RVGF created by ~Denise Zenfreetexjip on 06/25/2010

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)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS