Hi all,
I have a button which I use for editing SQL queries. I want to hide it from people using Servoy client. How do I detect that I’m using Developer in a Javascript?
Hi all,
I have a button which I use for editing SQL queries. I want to hide it from people using Servoy client. How do I detect that I’m using Developer in a Javascript?
Christian
I also have forms/buttons exclusively for Developer use and hide/show them based on Username login. Would this work for you?
Graham Greensall
Worxinfo ltd
At the moment I only have 2 users logging in using the same password. Later this will increase to at least 12, so I better start tracking my users and give them individual logins.
I always have a login with Username/Password even if only a couple of Users then its very easy to add scale and different levels of User access. Also allows me to set my own ‘Dev’ access level which adds items to Home page menus that no-one else sees.
Have found this very useful when accessing solution remotely and you need to see Forms/Methods that are hidden from end-Users.
Regards
Graham Greensall
Worxinfo Ltd
swingman:
Hi all,I have a button which I use for editing SQL queries. I want to hide it from people using Servoy client. How do I detect that I’m using Developer in a Javascript?
Hi, IT2BE has a tool plugin (free) in which you can detect if you are in Developer mode or in Client-mode! Very handy!
HJK:
Hi, IT2BE has a tool plugin (free) in which you can detect if you are in Developer mode or in Client-mode! Very handy!
I don’t really understand why you would want to detect if Servoy is in Developer or Client mode. You use Servoy Developer to build an application which you then run in Servoy Client.
However if you need an “administration mode” for you application then it should be part of the application itself. You log in using an administrator (using Servoy Client!) to do this administration.
sebster:
I don’t really understand why you would want to detect if Servoy is in Developer or Client mode. You use Servoy Developer to build an application which you then run in Servoy Client.However if you need an “administration mode” for you application then it should be part of the application itself. You log in using an administrator (using Servoy Client!) to do this administration.
For several reasons!
If I run in Client-mode I hide the top menu_bar completly! not in Developer. In client-mode I do some startup scripts, which I don’t want when I am in developer-mode. etc..etc..
I still don’t understand why you want to “run” in Developer mode. For testing purposes, ok, but that’s pretty much it, isn’t it?
sebster:
I still don’t understand why you want to “run” in Developer mode. For testing purposes, ok, but that’s pretty much it, isn’t it?
Yes, for example the clients have all kinds of filters (tableFilterparam), but in Developer I want to have an overview of all the records, without the filters.
Well that sounds more like an “administrator” mode than a “developer” mode to me! Why should you see something else in “testing” mode of the Developer than what a real client sees? That would make the testing in the Developer quite difficult!
Whatever! to complex to explain. I need it, and I find it very handy!
Hai Seb,
I created this function (isServoyClient()) which is not a real check but more an emulation because I, like Harjo said, want to check on numerous things like:
All developer related things that either make the start of the solution cleaner by taking out unneccesary stuff and/or holding the solution from doing stuff like removing some toolbars which I then have to put in again or removing changing menu’s which I can’t undo until I restart…