ddreese Posted May 14, 2003 Posted May 14, 2003 I have a script for my login file that checks to see if it is a valid login, if it is, then it performs a certain external script depending on what 'unit' the person is in. I have a custom dialog popping up to fill in 'Username' and 'Password' fields in the login file. The login file has a relationship to the user_db by the field 'username'. The script looks like this: .............................................. - Go to Related Record (user_db) - if (user_db::password = password) - set field (g_username = username) - g_username is a global set when someone is logged on. If g_username is blank, then they are not logged in... An open script in every file checks to see if the g_username is blank, if it is, it closes the file, and takes the user back to the login page. - if ( user_db::unit = "MIS" ) - perform script (external script) - end if .................So on, soforth.............................. The external script is in a different file, and is basically just a 'Goto layout' script. Before I used the custom dialog for username and password, the script would run and then stay at the layout in the external file. Now, it runs the script, but keeps the login page on top. How can I make the external script run and keep that layout on top, i.e. the current layout visible?
SteveB Posted May 14, 2003 Posted May 14, 2003 Use the Halt Script command in the external script to stop all the other parent scripts from running.
Recommended Posts
This topic is 7868 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now