Sintax Posted March 29, 2004 Posted March 29, 2004 Hey guys! I have a(nother) question which I am hoping someone can help me out with. Is it possible to, on the first time the database is opened, show one Layout (as in a "help screen") but on every other time it is opened (2 - forever) it shows a differently Layout? I would imagine that would be accomplished with a script and perhaps a global attribute? I don't know though how to go about it really. Thanks as always Version: v7.x Platform: Mac OS X Panther
Singlequanta Posted March 29, 2004 Posted March 29, 2004 Yep. 1. Define a global field called, "_gStartup" or whatever you want to call it. 2. Create a script called "reset" which sets _gStartup to a value such as "1" 3. In your startup script check for "1" in _gStartup. If its a match set it to "0" and redirect to your help layout. The purpose of step 2 is to reset it whenever you want. See the attached file. Version: Developer v7 Platform: Windows XP Sample.zip
Sintax Posted March 29, 2004 Author Posted March 29, 2004 Thanks for the help file man! I love it when I get those... learn so much from them. Also, that question mark graphic is PIMP! Where did you get that? Is it royalty free?
Sintax Posted March 29, 2004 Author Posted March 29, 2004 Well no matter what I try I can't get it to go to the help screen. I have triple checked the settings against yours but just can't see what is going wrong! Can I have other things in the startup script before the IF/Else statement? I do...
Sintax Posted March 30, 2004 Author Posted March 30, 2004 Nevermind... I found out I had to enter a number into the global field... thought the script would do it for me
Singlequanta Posted March 30, 2004 Posted March 30, 2004 Yup - you can get as elaborate as you want with the if/thens. you can embed them to create hierarchical (sp?) if statements such as: if _gFirstRun = 1 if get (systemplatform) =-2 show message "running windows" else show message "running mac" endif else go to layout "your layout" endif Excuse the crude syntax but you get the idea. PIMP? whats pimp?!?! LOL
Sintax Posted March 30, 2004 Author Posted March 30, 2004 Pimp = Cool... new slang. Well an old word resurected. Did that question mark graphic come from some kind of image resorce? Did you make it? Was just wondering if it was safe to use in my help file or someone owned it.
Singlequanta Posted March 30, 2004 Posted March 30, 2004 The question mark was an icon i got from objectdock.com
BruceJ Posted March 30, 2004 Posted March 30, 2004 Sintax said: Pimp = Cool... new slang. *******, I'm getting old. Reguarding the cool "PIMP" graphic, I went to that site you mentioned and found lots of "PIMP" things to download, but I can't seem to get the same effects with the transparency that you did in yours. How did ya do that? I need the remedial course - I road the short bus to school - . (By the way - did the the use of "PIMP" make me seem any younger yet?- I'm gonna try it on my kids and see how I rate on the cool meter.)
stann Posted March 30, 2004 Posted March 30, 2004 Hello Is it possible to make a the first layout password protected - So they only see it once and add information but all other times it is protected so they can't get there? Is that possible cause that would be hot. Thanks Stan
Sintax Posted March 30, 2004 Author Posted March 30, 2004 I am by no means an expert on this subject but I have a trick that I did (which appears to work thus far). I wanted a splash screen so I made a layout called "Splash" and in my Start Up script called it, paused for 4 seconds and then proceeded to another layout. There is no way to get back to that Splash layout unless you close down and open the file back up. (since all my navigation is done with scripts and there are no links to that layout) Using the logic of the exampe above that was given to me, can't you make your "one time only" layout my "Help" layout. Meaning that the script checks to see if the file has ever been open and if not it displays your super secret layout. If the script detects that the file has been opened more then once it will not show that page ever again. That "One Time Layout"... he's so hot right now (taking your "hot" slang and applying it to the movie Zoolander. An aweful movie unless you watch in a dozen times and then you can sink to its level and start to laugh) Version: v7.x Platform: Mac OS X Panther
Singlequanta Posted March 30, 2004 Posted March 30, 2004 Yes, there are several ways to achieve having your "secret" layout a one time option which afterwards requires a password. Assuming you're using FM 7 you could use the in-built accounts and privledges to do change the password after the first run. You could also adopt an FM76 approach and store a password in a global field somewhere but if you do that then I would suggest you review the thread on security and privledges because this is a very unsecure approach unless you use a hashed passwd or some other process to encrypt the password. It doesn't need to be complex, just something to prevent the password from living clear text within the solution. Steve
Recommended Posts
This topic is 7804 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