You are on page 1of 1

<CommandUIHandlers> <CommandUIHandler Command="Ribbon.Report.ReportGroup.Attending" CommandAction="javascript: function demoCallbac (dialogResult, returnValue) { SP.UI.Notify.addNotification('Operation Successful!'); SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK); } var ctx = SP.ClientContext.

get_current(); var items = SP.ListOperation.Selection.getSelectedItems(ctx); var myItems = ''; var ; var index =0 ; for ( in items) { if (index == 0) { myItems += items[ ].id; } else { myItems += '|' + items[ ].id; } index ++; } alert(myItems); alert ('/Lists/ApplicantEvent/AllItems.aspx?items=' + myItems + '&amp ;source=' + SP.ListOperation.Selection.getSelectedList()); var options = { url: '/Lists/ApplicantEvent/AllItems.aspx?items=' + myItems + '& amp;source=' + SP.ListOperation.Selection.getSelectedList(), tite: 'Move Documents', allowMaximize: false, showClose: true, width: 800, height: 600, dialogReturnValueCallbac : demoCallbac }; SP.UI.ModalDialog.showModalDialog(options);" /> </CommandUIHandlers>

You might also like