• Dialog Box and Saving the Document

    By Jeffrey T McQuillen 1 decade ago

    I have a dialog box which I display using a link:

    XSP.openDialog('#{id:dialog2}')

    This dialog box has an OK button which does a few things, updates a few fields, saves the document and re-directs.

    There are many fields on the page and if I make any changes to the fields prior to clicking the link, the changes do not get saved. The changes made by the dialog box ARE saved.

    I'm not sure if this is a bug or if it is working as designed. Either way I need to find a way to save the changes before the dialog box displays. (Another link or 2 steps for the user is not an option)

    This doesn't seem to do the trick:

    x='#{javascript:HelpDesk.save()}';

    and this:

    document.save()

    only makes the page stop and no dialog appears.

    Help?

    • Hard to guess

      By Philippe Riand 1 decade ago

      What happens if you simply execute the save() method on the server (or the related simple action)