Jump to content
Sign in to follow this  
Wickerman

Oops! Can I disable start-up script?

Recommended Posts

Wickerman    1

Boy do *I* feel silly. I'm trying to use a splash screen for the first time, identifying the database name and my contact info, so I made a script that opens the splashscreen layout, but when i tried it, I found the last layout viewed also opens.

So, I took a guess and put a "Close Window" step at the beginning of the script, which is apparently the wrong thing to do, since now when I open the file, it immediately closes the window and I'm left with no open file . . . which means I can't get back in to fix the script. In effect, I'm barred from entry to my database! D'oh!

I figure there must be a way to circumvent the opening script, yes? Please? Holding some arcane combination of buttons down? I'd appreciate any help, and maybe a pointer to a good overview of how to properly script an openign splashscreen.

Wickerman

Share this post


Link to post
Share on other sites
Søren Dyhr    2

Why circumvent, why not put in a condition looking via Get(UserName) or Get(PrivilegeSetName) if the init script should be exited??

--sd

Share this post


Link to post
Share on other sites
normanicus    1

As far as I remember if you create another fp7 file and do a GTTR to a related record in the problem file then the startup script is not run.

Share this post


Link to post
Share on other sites
bcooney    101

GTRR = go to related records

Share this post


Link to post
Share on other sites
softpac    0

Reason I ask is because I've done the same thing - locked myself out and now I to disable the opening script. But I don't follow/understand the solution offered here. Your help is much appreciated.

Share this post


Link to post
Share on other sites
Wickerman    1

Hi Softpac -- since I benefited from the original suggestion, I'll pass it along.

Create a new database file (or open an existing one you haven't locked yourself out of). Create a relationship between any field in your available file and some field in your inaccessible file and then put a button on a layout formatted to "Go to Related Records" and identifying any related layout from your inaccessible file. THen go into browse mode and click the button -0- *voila* you're back in your other file, where you can disable the problem script.

Wickerman

Share this post


Link to post
Share on other sites
_henry_    0

Hi Wickerman,

Is that method only work for a FM file that still has the Admin access to the file (Admin's privilege has not been removed)?

Thanks for the answer in advance

Share this post


Link to post
Share on other sites
Wickerman    1

Hmmm -- I don't know about that one. To date, I haven;t monkeyed with access / permissions much. Anyone else shed light on this one?

Wickerman

Share this post


Link to post
Share on other sites
GeoSteven    0

I know I'm jumping in late here but I ran across this thread looking for something else. My answer to your issue seems simpler to me. Create (or open) any other database. Set script debugger on. Open 'locked' database. Go to scriptmaker from the debug window. Remove offending script step. Save... :

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.