如何在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());
}
但它没有打开弹出窗口?!