none
How to get the args values from OpenPopUpPageWithDialogOptions RRS feed

  • Question

  • From the parent window:

                var dialogOptions = {
                        url: eventURL,
                        title: eventTitle,
                        width: 800,
                        args: {'dialogTitle': eventTitle,'dialogLocation':eventLocation},
                        dialogReturnValueCallback: function(dialogResult) {
                        SP.UI.ModalDialog.RefreshPage(dialogResult);
                    }

                    OpenPopUpPageWithDialogOptions(dialogOptions);

    In the dialog:
    I tried below but didn't work. 

     var args = SP.UI.ModalDialog.get_childDialog().get_args();

    Thursday, April 6, 2017 2:47 PM

Answers

  • Upon searching for so many hours, I finally found a solution that is working.

    https://sptalks.wordpress.com/2013/03/12/sharepoint-modal-dialog-passing-values-back-and-forth/

    Thursday, April 6, 2017 11:22 PM

All replies

  • Upon searching for so many hours, I finally found a solution that is working.

    https://sptalks.wordpress.com/2013/03/12/sharepoint-modal-dialog-passing-values-back-and-forth/

    Thursday, April 6, 2017 11:22 PM
  • Thanks for sharing!

    Regards, Sjoukje

    Please remember to click 'Mark as Answer' on the post that helps you.

    Sunday, April 9, 2017 6:26 AM
    Moderator