I have a SP 2010 custom list which is fetching data from multiple lists. So I have written a workflow in SP Designer to get data (auto populate) from all lists.

It's working fine, but taking more than 30 seconds. While loading I need to display a progress bar (like gears).

If workflow status = null or in progress, I need to show status bar.

How can this be done?

  • Do you plan on checking the [if workflow status == null ] in the processing of the workflow itself? – lwbecker2 Mar 24 '14 at 13:46
  • Yes...if it is possible...but need to avoid the processing time and need to show something is happening in back end(loading symbol(gears)). – user24600 Mar 24 '14 at 16:36
  • Did you find any solution of progress bar issue. I have similar requirement and looking for jquery or SP services solution. – user25357 Apr 24 '14 at 12:25

There is a SPLongOperation class you can use.

SPLongOperation Class on MSDN

I would suggest that Workflows are typically for long-running, asynchronous tasks (that is, control is returned to the user via the GUI while workflow does its work), and that something like an event receiver is probably more suited to short tasks like yours. Using event receivers might not be available to you though. If they are, I would look into creating a synchronous event receiver and using the SPLongOperation class.

  • Hey thanks for ur reply,I can't able to write custom server side code.Pls suggest me using jquery or sp services or ecma scripts code. – user24600 Mar 24 '14 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.