Sharepoint 2013 是否可以从sharepoint中托管的应用程序部件以模式对话框的形式打开sharepoint页面
我在sharepoint页面上的应用程序部件上单击按钮时调用下面的函数“Dialog”,但“拒绝访问”错误可能是由于iframe的DOM访问限制造成的。是否有其他方法可以从应用程序部件打开sharepoint页面。Sharepoint 2013 是否可以从sharepoint中托管的应用程序部件以模式对话框的形式打开sharepoint页面,sharepoint-2013,showmodaldialog,Sharepoint 2013,Showmodaldialog,我在sharepoint页面上的应用程序部件上单击按钮时调用下面的函数“Dialog”,但“拒绝访问”错误可能是由于iframe的DOM访问限制造成的。是否有其他方法可以从应用程序部件打开sharepoint页面。 函数对话框(){ } 函数ShowServerInformation(){ } 尝试为应用程序授予适当的应用程序权限 <AppPermissionRequests> <AppPermissionRequest Scope="http://sharepoint/
函数对话框(){
}
函数ShowServerInformation(){
}
尝试为应用程序授予适当的应用程序权限
<AppPermissionRequests>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>
我尝试了SP.SOD.execute(…)函数,但仍然出错
var options = {
url: "/_layouts/Viewlsts.aspx&IsDlg=1",
tite: 'Server Information',
allowMaximize: false,
showClose: true,
width: 430,
height: 230
};
parent.SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
return false;
<AppPermissionRequests>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>