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:
- Code: Select all
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.
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/
- 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