Hi, I think there is a problem with application.isInDeveloper method. When I try to debug it in Servoy IDE, it always returns false. Do we have a working API where a method returns true when used in developer and false when solution is deployed in SC, WC, or SHC?
strange, works fine here…
if(application.isInDeveloper()) {
}
can you show me a piece of code that fails?
I am using Version: 5.2.1 - build 999. The code below is in a module parametrized in security.authenticate(MODULE,*);.
if (!application.isInDeveloper())
{
//perform business rules
}
I’d like to perform some business rules when not in developer mode.
Erik,
application.isInDeveloper() only seems to work for regular clients, I will correct this.
Rob
rob, I don’t understand
we use this this a lot:
if (!application.isInDeveloper()) {
//do my stuff here
}
and it works like it should (in 5.2.5)
So when I run this code in a regular client (Smart web, etc…) ‘do my stuff here’ is executed.
When I run it in the debug client, straigth from my developer, ’ do my stuff here’ is not executed!
So I’m curious what is wrong than?
Harjo,
It works and worked as you described in smart client and web client, when running these in developer application.isInDeveloper() returns true.
But not in authenticator, it always returns false.
Rob
rgansevles:
Harjo,It works and worked as you described in smart client and web client, when running these in developer application.isInDeveloper() returns true.
But not in authenticator, it always returns false.
Rob
Exactly. It does not work in Authenticator solutionType module.
Thanks, Rob.