Subject: RE: Local or Server mailfile - best way to determine
Of course.
Our user for example, is working on a disconnected setting in location document. Or, they are in any case not working in a disconnected mode in the location document, but, are working only locally. They are not connected to any network.
Then, the database I use can be used to import emails, into a different application. This application should work also when disconnected, as the other application is also working locally, like notes.
The application works with the users mailfile.
I am trying to determine, ideally, without using the location document, if the user is using their PC in this mode (disconnected from the network / using just a local mailfile).
The best I came up with is this:
FilePath:=@If(@MailDbName=“”;LocalPath;ServerPath);
e.g. @MailDbName apparently returns a “” if on local.
This function is OK. BUT - it does not do exactly as it says in the help, as IT USES THE LOCATION DOCUMENT to determine if it is local or not…unfortunately, this is like, predicating that our user will be uisng the location document as you or I would- but this is not neccessarily the case.
So I wondered if there was a better method, that does not make use of the location document, to determine whether the user is USING local notes, or server notes.