# Problem with Busy Plugin

**URL:** <https://forum.servoy.com/t/problem-with-busy-plugin/15338>\
**Category:** Classic Servoy\
**Created:** [January 12, 2012, 7:43pm UTC](https://forum.servoy.com/t/problem-with-busy-plugin/15338 "2012-01-12T19:43:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [January 12, 2012, 7:43pm UTC](https://forum.servoy.com/t/problem-with-busy-plugin/15338/1 "2012-01-12T19:43:10Z")

</div>

Good evening from Gran Canaria.

I have just downloaded the busy plugin and started to play with it.

Seems to work fine, the process is executed without problems but just before the grey shadow is off I see a Servoy message Error Calling Server. Checking the server log I have this:

[attachment=0]busypluginError.jpg[/attachment]

I forgot to mention is WebClient.

This is the code to start the busy plugin:

```auto
function cmdOK_onAction(event) {
	var params = {
		processFunction: saveAppointment,
		message: i18n.getI18NMessage('calendar.text.saving_appointment'),
		opacity: 0.5,
		paneColor: '#000000',
		showCancelButton: false,
		dialogName: controller.getWindow().getName()
	};
	plugins.busy.block(params);
}

```

And this is the saveAppointment method (part):

```auto
function saveAppointment(event) {
	try {

		if (_subject && _appt_typeid && _start_time && _end_time) {
          // Code here that saves the appointment, too long to show but it works fine without the busy plugin
      }
	} catch (e) {
		application.output("catched exception");
		application.output(e);
	} finally {
		plugins.busy.unblock();
	}
}

```

Environment Servoy 6.0.4, Win7 and Chrome

 ![busypluginError.jpg](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/1X/321591a746ebc1ed557602b80843b7593c033f85.jpeg)

---

<div class="post-metadata">

**Author:** ![boonstrj](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@boonstrj](https://forum.servoy.com/u/boonstrj)\
**Post date:** [March 1, 2012, 9:22am UTC](https://forum.servoy.com/t/problem-with-busy-plugin/15338/2 "2012-03-01T09:22:52Z")

</div>

If I’m not mistaken, you have to use the prepare function of the busy plugin in web-client.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [March 1, 2012, 10:44am UTC](https://forum.servoy.com/t/problem-with-busy-plugin/15338/3 "2012-03-01T10:44:09Z")

</div>

Thanks Jeroen. Sorry I did not post the solution before. It was my fault, I had commented the prepare function because I was testing other things and I forgot to uncomment them.
