FluentRibbon CommandJavaScript

FluentRibbon CommandJavaScript

CommandJavaScript = ""
+ "function getAllSelectedItems() {"
+ "var ctx = SP.ClientContext.get_current();"
+ "var items = SP.ListOperation.Selection.getSelectedItems(ctx);"
+ "var ids = '';"
+ "var i;"
+ "for (i in items)"
+ "{"
+ "ids += items[i].id + '|';"
+ "}"
+ "return ids;"
+ "};"
+ "SP.UI.ModalDialog.showModalDialog({title: 'Настройка выгружаемого файла', width: 800,height:800,url: '" + SPUrlUtility.CombineUrl(web.Url, "/_layouts/Report.aspx") + "?SiteUrl={SiteUrl}&SPListId={ListId}&Ids=' + getAllSelectedItems() });"
[Ещё]