# HeadlessClient

**URL:** <https://forum.servoy.com/t/headlessclient/17522>\
**Category:** Classic Servoy\
**Created:** [October 9, 2013, 9:44am UTC](https://forum.servoy.com/t/headlessclient/17522 "2013-10-09T09:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_R](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Marco\_R](https://forum.servoy.com/u/Marco_R)\
**Post date:** [October 9, 2013, 9:44am UTC](https://forum.servoy.com/t/headlessclient/17522/1 "2013-10-09T09:44:27Z")

</div>

Hi all,

I would like to use the headlessclient plugins.  
I need to start some process on the server and to give an evidence to who is watching the smart-client form.  
In particular I would like to return a percentage progress and not only a message like “ok, done” at the end of method (callBackFunction).

To do that I’ve followed this idea:

- I open a solution with the smart client
- From the main form I create an headless client on the server
- On the headless client I call a methed passing the UUID of smart client as parameter (to get it I’ve used UserManager plugin of Maison suite).
- Once the method is called it should get a “pointer” to the smart client by this codes:

```auto
var _client = plugins.headlessclient.getClient(_mainClientUUID)

```

- from “\_client” I call “queueMethod” to call a “percentage” update on the main client.

Something on this last point doesen’t work. I receive the “callbackMethod” calling but I don’t see any of what I’m expecting.

To be more clear I attach a sample solution.  
[attachment=0]test\_headless.servoy[/attachment]

To use this solution remember to:

- download UserManager plugins and a licence key (is free and sent by mail) from [http://www.servoy-plugins.de/](http://www.servoy-plugins.de/)
- put the licence registration on the “solutionOpen” method of solution
- put the licence credential on your servoy server

I’ve used java 1.7.40 and servoy 6.1.6 to develop and test this solution.

Thanks in advance

Marco

[test\_headless.servoy](https://forum.servoy.com/uploads/short-url/guR7tv1pa6eqdQDq0MZ7qPIsoOJ.servoy) (4.5 KB)
