Steve S Posted January 14, 2005 Posted January 14, 2005 In FM 6 if you wanted to make an alias to a database on a server, you actually had to create a new database that ran a script that opened the hosted file and then closed itself. Do you still have to do this in FM 7? Is there a way to alias a hosted DB without creating an additional db?
Fitch Posted January 14, 2005 Posted January 14, 2005 You still use opener files in FM7. The good news is, you can now explicitly define file references, so you can set up the opener file without having to actually connect to the server. You just go to define, type in e.g. fmnet:/xx.xx.xx.xx/yourFile. The bad news is, that's the only way to do it -- you can't define a file ref. from a field or script, which would be ideal for this use. Another cool thing about FM7 is multiple tables per file. I made myself a deluxe launcher file that includes a table with all the FM error codes. Took all of 3 minutes to set up and import. Now my users get semi-intelligent error messages when the hosted file fails to open for whatever reason.
Steve S Posted January 14, 2005 Author Posted January 14, 2005 well. this might be more for a permissions thread, but I'll post here anyway. So I use the starter file and it works to open the hosted one. My problem now is logging in. It seems that if I set the starter file to auto log in, then it will use that logon for the hosted file. I dont get a chance to log in at all. So I can see to fix this, I can create the same accounts I have on the hosted db onto my starter db. then logon to the starter and it will use that logon for the hosted db. But this is a pain. Every time I make a new account i'll have to update the starter file on every client. Not friendly. Can I set it to somehow ignore the authentication to the starter file when it hits the hosted DB.. And just use the accounts created in the Hosted DB? hope that makes sense, thanks!
Claus Lavendt Posted January 16, 2005 Posted January 16, 2005 Yes. Just make the opener file unlocked, or use an account/password that you do NOT have in the systems on the server. This way, the user is forced to enter username/password to the remote file. (The remote file must be set to NOT log in automatically) ;-) Claus
Steve S Posted January 18, 2005 Author Posted January 18, 2005 Thanks much you guys. This is what I needed to get it working. Hey Fitch, any chance you can give me a look at that delux starter file you mentioned? It sounds pretty neat and I'd love to see how you did it. And maybe save meself some time trying to figure it out. : Thanks again
Fitch Posted January 31, 2005 Posted January 31, 2005 When I have a little time I'll clean up the file and post it.
Fitch Posted February 10, 2005 Posted February 10, 2005 Finally uploaded the file. See the Sample Files forum. I'd post a link, but the tags don't seem to be working today.
Recommended Posts
This topic is 7225 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