context.redirectToPage only works intermitently in Notes Client

三世轮回 提交于 2020-01-17 05:10:34

问题


I have a button in an Xpage with an OnClick event that does the following:

    var viewPanel=getComponent("viewPanel1");
    var docIDArray=viewPanel.getSelectedIds();
    sessionScope.put("searchDocIDArray",docIDArray);
    var url="exportData.xsp";
    context.redirectToPage(url, false);

The exportData page is not rendered but just has some code to write out an Excel file. In the client sometimes it does this and sometimes it does nothing and sometimes it writes over the current Xpgage and is just blank. I think what I need to do is to just launch that page in a new window? I am not sure.

It works on the web every time.


回答1:


What version is your client?

Another approach you can try is opening your xagent with a window.open () in the onComplete event of your button. I don't remember off the top of my head if that works in xpinc. The advantage of this is your export will open in a new tab.



来源:https://stackoverflow.com/questions/23688898/context-redirecttopage-only-works-intermitently-in-notes-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!