4

When pressing the close button (x) of the Dialog (displayed in an iframe) the displayed iframe is removed, but the panel including the close button and heading still remains. I found following error in the logs, but I'm not sure if it is related TypeError: o.get_contextActivationManager is not a function occurred in owa.clientnext.extensibility.js:7:1898.

The Exchange server version is 15.1 ‎(Build 1034.26)‎. The Probelm occured in

  • Firefox 55.0.3 (32-Bit)
  • Chrome 61.0.3163.100 (Offizieller Build) (64-Bit)
  • IE 11.0.9600.18792

I use following function to create the dialog:

export async function GetFiles(): Promise<string[]> {

    return new Promise<string[]>((resolve, reject) => {

        Office.context.ui.displayDialogAsync(window.location.origin +
            '/exchangeAddIn/UploadDialog/index.html',
            {
                height: 50,
                width: 50,
                displayInIframe: true
            },
            (asyncResult: Office.AsyncResult) => {
                if (asyncResult.status === Office.AsyncResultStatus.Failed) {
                    Logger.error('Faild Dialog %o', asyncResult);
                    reject();
                }
                else {
                    let dialogHandler = asyncResult.value as Office.DialogHandler;

                    dialogHandler.addEventHandler(
                        Office.EventType.DialogMessageReceived, (args: any) => {
                            dialogHandler.close();
                            if (args.message == null) {
                                resolve();
                            }
                            let array = JSON.parse(args.message) as string[];
                            resolve(array);
                        });

                    dialogHandler.addEventHandler(
                        Office.EventType.DialogEventReceived, (arg: any) => {
                            reject();
                        });
                }
            });
    });

}
7
  • In your DialogEventReceived, is arg.error being returned as 12006 when this occurs? Oct 4, 2017 at 14:22
  • 1
    Also, is your GetFiles function called from a task pane or from a command in a ribbon button or menu item? Oct 4, 2017 at 15:26
  • @MarcLaFleur-MSFT yes the error code is 12006. Oct 5, 2017 at 6:46
  • @RickKirkham The function is called from a task pane. Oct 5, 2017 at 6:47
  • We have tried to repro this, but cannot in CU7. If this is fixed in CU7, it is unlikely that the fix would be backported to CU6. Is it possible for you to try and repro this against CU7? social.technet.microsoft.com/wiki/contents/articles/…
    – user7823505
    Oct 13, 2017 at 18:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.