Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
10 posts • Page 1 of 1
10 posts
• Page 1 of 1
yosu
Posts:22
Joined: Wed Mar 14, 2012 4:14 pm
[SOLVED] Can not add new user with User Administration panel in my project
Postby yosu »
I am trying to add several users with the User Administration panel in WinCC OA 3.14patch15 and it always tells me that user already exists after first user is added.
Here I show how I configure the first user.
And after user is added.
Then I try to add a new user and it tells me already exists.
I tested it under Centos 7.3 and OpenSUSE Tumbleweed.
Re: Can not add new user with User Administration panel on Centos 7.3 / OpenSuse (WinCC OA 3.14)
Postby leoknipp »
I added some DebugTN statements to the CTRL code.
Can you please copy the attached panel to the directory /panels/vision and test it again.
When adding the user you should see some debug messages. If the error occurs again please post the debug messages.
Re: Can not add new user with User Administration panel in my project
Postby leoknipp »
When looking at the screenshot where the first user was added you can see the username "-1".
It is the same information written by the debug message. The username which is read from the text field is "-1" and not the string you have entered, e.g. "user1".
I do not know why the getting the text returns "-1" instead of the user name defined.
Can you please load the attached panel in a Vision module. Afterwards write some text in the text fields and click "OK".
Do you get the same information (strings entered in the text fields) in the Debug messages?
Re: Can not add new user with User Administration panel in my project
Postby leoknipp »
Thanks for doing the test.
I discussed it with our UI developer in we potentially found the cause for the problem.
It looks like you have defined a variable with the name "user" in some script/CTRL library.
Can you please check the scripts to detect where the variable is defined and change the code in your script.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Can not add new user with User Administration panel in my project
Postby yosu »
Yes, you are right. I found one script which defines a general variable called "user". I rename that variable and now User Administration panel works good.
Any other variable name that can we not define as global?
Re: Can not add new user with User Administration panel in my project
Postby leoknipp »
There are a lot of objects used in the standard panels and we do not know all their names. Therefore we cannot tell you which variable names you should not use.
If you want to avoid conflicts you could add a prefix to the variables defined in your scripts, e.g. the datatype in a short form, "s" for string, "f" for float.
Instead of "user" the variable can then be "sUser" or "s_user".
You can also add some other information, e.g. a shortcut for your company name.
Best Regards
Leopold Knipp
Senior Support Specialist