I made a little method that clears Java cache and removes .servoy folder on client’s computer. Sometimes that could be usefull to do. Especially by often updating plugins and beans .
After performing this action, I like also to (automaticly) download the same client again. Problem here is that application.getServerURL() returns nothing in the smart client, so the url to download the client again is unvalid.
This is the way I try to retrieve the deeplink to download the client again:
var vServerURL = application.getServerURL()
var vSolution = application.getSolutionName()
vServerURL += '/servoy-client/servoy_client_' + vSolution + '.jnlp'
application.showURL(vServerURL)
In smart client vServerURL returns ‘http:///servoy-client/servoy_client_.jnlp’. (In developer the deeplink works, btw)
Anybody know why vServerURL does not contain the ip address and portnr?