- Code: Select all
application.getApplicationType() == 3
Now in 4.1.1 when using Eclipse it still returns value 3, but not when websolution is tested cfrom Eclipse.
In that case the value 5 is returned, while smartclient return 3 when running from Eclipse and 2 outside Eclipse.
//Get the application type
var type = application.getApplicationType();
//type 1 = SERVER
//type 2 = CLIENT
//type 3 = DEVELOPER
//type 4 = HEADLESS_CLIENT
//type 5 = WEB_CLIENT
//type 6 = RUNTIME
Now I have a problem. In developermode my program must in some places react different then when running as live program.
In 3.5 we were not able to debug webclient
Now we can debug webclient, but since I'm running from Eclipse I want to recognize that I'm running from Elipse.
I think the application.getApplicationType() must keep their values (or value 7 must be added WEBCLIENT DEVELOPER), but I would like to see a new property
- Code: Select all
boolean application.runningFromDeveloper(); // or something similar
so that I can recognize it.
Does such an option already exists in 4.1.1 and if not could this be an option to add it?