Question:
Can I customize the login window in an E3 application?
Solution:
This can’t be achieved via Login() method; however, you can customize a login screen via LoginUser() method. With this, you can make sure only users created at Elipse E3 are able to log in. See the script below:
Sub grButton_Click()
Dim user, pass
user = Application.Item(“dtLogin”).Item(“User”).Value ‘Tag receiving the user’s content
pass = Application.Item(“dtLogin”).Item(“Password”).Value ‘Tag receiving the password’s content
If Application.LoginUser(user, pass) Then
MsgBox “User login ” & user & ” was successful!”, vbinformation, “Login Information”
Screen.Close(0)
Else
MsgBox “Wrong Login!”, vbexclamation, “Login Information”
End If
End Sub
NOTE: The attached demo application was develop with Elipse E3 version 4.6 build 151.