Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在SharePoint 2010中打开assetportalbrowser_Sharepoint_Sharepoint 2010 - Fatal编程技术网

如何在SharePoint 2010中打开assetportalbrowser

如何在SharePoint 2010中打开assetportalbrowser,sharepoint,sharepoint-2010,Sharepoint,Sharepoint 2010,如何在SharePoint 2010中使用assetportalbrowser将现有文档附加到其他列表中 到目前为止,我尝试的是: function InitiateAssetPickerPopUp() { var context = new SP.ClientContext.get_current(); this.Web = context.get_web(); context.load(this.Web); context.executeQueryAsync(Functio

如何在SharePoint 2010中使用assetportalbrowser将现有文档附加到其他列表中

到目前为止,我尝试的是:

function InitiateAssetPickerPopUp() {

  var context = new SP.ClientContext.get_current();
  this.Web = context.get_web();
  context.load(this.Web);
  context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
                            Function.createDelegate(this, this.onFail));
}

function onSuccess(sender, args) {

  var options = {
    title: 'My Dialog',
    width: 500,
    height: 600,
    showClose: false,
    url: _spPageContextInfo.siteServerRelativeUrl
         + '/_layouts/AssetPortalBrowser.aspx?&AssetUrl='
         + _spPageContextInfo.siteServerRelativeUrl
         + '&   RootFolder='
         + _spPageContextInfo.siteServerRelativeUrl
         + '&MDWeb='
         + this.Web.get_id()
         + '&AssetType=Link',
    dialogReturnValueCallback: function(dialogResult) {
      alert(dialogResult);
    }
  };
  SP.UI.ModalDialog.showModalDialog(options);
}

function onFail(sender, args) {
  alert('Failed:' + args.get_message());
}

但它没有打开弹出窗口

为什么AssetPortalBrowser的url在布局后有空格?“/_layouts”将代码传递给blog是一个错误。是否存在任何javascript错误?