Jump to content
Server Maintenance This Week. ×

Proper Formating of objFMfiles = objFM.Documents.Open


This topic is 6513 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Folks

I have been experimenting with VBS and have run into a snag. The objFMfiles = objFM.Documents.Open has thrown me for a loop.

If I format it as any of the following it errors out (405):

objFMfiles = objFM.Documents.Open("C:t.fp7","")

It does work however if I format it like:

objFMfiles = objFM.Documents.Open("C:t.fp7","UserName","Password")

I would like to use a local opener without a password if possible (I authenticate all my folks through our LDAP server and don't wish to duplicate this structure in the local file), but I can't get the file to open unless I have a Users and Password setup in the file and in the VBS.

Vince Dolan

VP of IT and Process Improvement

Waymar Industries

14400 Southcross Drive West

Burnsville MN, 55306

952 435 7100 ext 242

Cell: 612 770 9304

Edited by Guest
Link to comment
Share on other sites

External authentication doesn't work on local files, only on files hosted by FileMaker Server.

One thing you can do is to set your opener file to automatically open with the guest account. If your script then calls a hosted file that's using EA, it will open with the proper account of the Windows logged-in user.

Link to comment
Share on other sites

If I format it as any of the following it errors out (405):

objFMfiles = objFM.Documents.Open("C:t.fp7","")

Yep, that's an error in the FM documentation. FM7/8 requires 3 parameters: filename, account, password.

Link to comment
Share on other sites

Wim

Yes indeed External Authorization only works through hosted files (via FMS), that is why I don't want to have to replicate the LDAP's structure in the local file's Account & Privileges. What I couldn't do is open a fp7 file without invoking the User Name and Password dialog. It is strange that you can't just open the file (C:test.fp7,"","") and bypass the whole dialog (assuming of course your opener file requires no password). The only way I got it to work was by supplying both a name and password, that I had setup in the file ahead of time, leaving it blank doesn't cut it.

I will however, try the Guest Account thingy thanks.

Vince Dolan

VP of IT and Process Improvement

Waymar Industries

14400 Southcross Drive West

Burnsville MN, 55306

952 435 7100 ext 242

Cell: 612 770 9304

Link to comment
Share on other sites

This topic is 6513 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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