We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!
AVEVA Plant SCADA Forum
A support forum for AVEVA Plant SCADA (formerly Citect SCADA). Share new and exciting product information, connect, learn, and collaborate with the ecosystem of Plant SCADA Users. AVEVA Plant SCADA a reliable, flexible and high-performance Supervisory Control and Data Acquisition software solution for industrial process customers. This forum is to connect, share, learn and collaborate new and exciting product information. Feel free to join and share to your Ecosystem of Plant SCADA Users.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-04-29 04:55 AM
Bonjour à tous,
je fais mes premiers pas sur Plant SCADA et j'aimerais pouvoir créer une page de connexion personnalisée comme illustrer sur l'image avec des champs de saisie "Username" et "password" des boutons "Login" et "Logout" et une combo box pour la sélection de la langue.
J'ai essayé plusieurs fonction comme "UserLogin", "UserPassword" mais j'ai des erreurs comme "E2022" et j'arrive pas à m'en débarrasser.
Je serais ravi d'avoir de l'aide
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-05-04 06:24 PM
Hi @Vamskhalil,
The error E2022 means:
"Too many or not enough arguments have been specified for a Cicode function. Check the number of arguments being passed to the function and make the required adjustments."
Could you share the function calls you have behind those buttons?
You could also look at the built in LoginForm() function, but I understand you want to customise the login form.
Otherwise, study the syntax for the function UserLogin() in the help: https://docs.aveva.com/bundle/plant-scada/page/1192353.html
Let us know how you go.
Kind regards
Olivier
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-05-06 02:16 AM
Hello Olivier,
Thank you for your reply
In fact, I've already managed to use the LoginForm() function. But my goal is to have a custom login page as shown on the screenshot.
I've created the roles and users, but how do I link them to my custom login page with input fields and the Login button that will allow me to validate the user input if the credentials are correct?
Using UserLogin, I pass as arguments ‘sUsername’ and ‘sPassword’ and in the “Login” button I call the ‘CustomLogin()’ function that I've written.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-05-07 10:01 PM
Hi @Vamskhalil,
It looks like your custom login function is missing arguments. How are sUsername or sPassword passed through to the inside of the function?
I think you should have this instead:
FUNCTION CustomLogin(STRING sUsername, STRING sPassword)
You might also consider trying to catch any error from the inner Login function, and return as part of your custom function. See the Example or ExampleSA cicode files for examples of this.
Let me know if this helps.
Kind regards
Olivier
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.
With achievable small steps, users progress and continually feel satisfaction in task accomplishment.
Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.
of