HeadlessClient

Questions and answers on developing, deploying and using plugins and JavaBeans

HeadlessClient

Postby Marco R. » Wed Oct 09, 2013 11:44 am

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:
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.
test_headless.servoy
(4.5 KiB) Downloaded 1041 times


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
Marco Rossi
Freelance

Main development environment: Servoy 6.1.6 - 7.4.3, Java 1.6u45,7u71 Windows 7/CentOS
Marco R.
 
Posts: 203
Joined: Thu Mar 19, 2009 12:37 pm

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 17 guests