Is it possible to implement SPLongOperation (or equivalent) in SharePoint Hosted apps, to use the SP default "Working on it.." dialog until list operations are completed?
2 Answers
I found a way to reuse the "working on it" dialog in apps.
The following loads the wait screen when List operations start executing.
- SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15);
Once the operations are complete I use
- SP.UI.ModalDialog.commonModalDialogClose();
Got a reference from this - JavaScript: How to reuse the "Working on it..." pop in
It is not possible to implement SPLongOperation in SharePoint hosted apps and probably there is out of the box feature available for SPLongOperation equivalent feature.
The workaround could be you can use JavaScript/jQuery plugin for this. There are lot available like spin.js.
-
Yes i thought of this approach and built a modal dialog using twitter bootstrap 3, as i'm making use of it already in my application. Just wanted to know if it is possible at all. Thanks– DarshanCommented Sep 19, 2014 at 7:01