I’m working with Servoy 5.2.11 in windows 7.
I’m using the JProgressBar bean with the “indeterminate” option.
All works fine… The problem comes, for example, when I have to wait the results of a sql execution: In this case the bar is freezed until the sql doesn’t finish.
My question is: Does exist a way to avoid this problem with this bean? If not: Does exist any other component that can bypass this behavior?
// Creates a headless client that will open the given solution.
var headlessClient = plugins.headlessclient.createClient("someSolution", "user", "pass", null);
if (headlessClient != null && headlessClient.isValid()) {
var x = new Object();
x.name = 'remote1';
x.number = 10;
headlessClient.queueMethod(null, "remoteMethod", [x], callback);
}
“someSolution” should be a different solution?
is the username and password solution based?
can i pass arguments to the callback method?
I tried to create “someSolution” but when I debug in developer the createClient method, it goes to the solutionopen of my mainSolution. anything i missed?
In developer, the “entry point” for headlessclient plugin isn’t actually call the Servoy solution you specify, but the activated solution. Which triggers the onOpen method of that solution if there is one.
When deployed, the entry point for headlessclient plugin is the solution you specify.
To test headlessclient properly in developer you need to activate the module that you are calling.
In developer, the “entry point” for headlessclient plugin isn’t actually call the Servoy solution you specify, but the activated solution. Which triggers the onOpen method of that solution if there is one.
When deployed, the entry point for headlessclient plugin is the solution you specify.
To test headlessclient properly in developer you need to activate the module that you are calling.
I do have a Cancel button in my form. How can I signal the headless client method to stop once it has commenced?
Generally, you either run methods or you don’t. Doesn’t change with headless client plugin methods. You could however string a bunch of headless client plugin methods together by triggering another one in the callback method of the prior one. This would give you the opportunity to get user input before proceeding with the next call.
I do have a Cancel button in my form. How can I signal the headless client method to stop once it has commenced?
Generally, you either run methods or you don’t. Doesn’t change with headless client plugin methods. You could however string a bunch of headless client plugin methods together by triggering another one in the callback method of the prior one. This would give you the opportunity to get user input before proceeding with the next call.
is there any other alternative for the headless client plugin so my progress bar still runs while my process runs in the background/server since i believe headless client plugin consumes 1 license.
I don’t know much about headless client licenses yet, but there is an old document (http://www.servoy.com/docs/servoy_headless_client.pdf) that suggests you can programmatically disconnect, thus freeing the license after the process is finished. It states, “Each headless client consumes a normal Servoy Client license when started - and that client is ‘released’ (becomes available again) after the JSP session has expired (or has been programatically terminated).”