I've seen a couple different example of a custom popup warning dialog box that will come up when the networked workspace cannot be found to give the user a warning that it is switching to the local workspace. I can't remember exactly where I saw this and am unable to locate any sample file. How could this be done? I currently have a CFG file with an if/then statement looking for the network version of the workspace, and then using the local version if it isn't found. Any example CFG file with this warning dialog would be helpful.
Thanks,Ken
Hi Ken,
Is this a V8i or CONNECT Edition question?
Marc
Currently V8i, but as we move into CONNECT, I think we will do the same. I was looking for a way to indicate to the user that they are using a local copy of the workspace when they aren't connecting to the network version.
OK, in CONNECT Edition (CE) it will be very clear, the UI has a WorkSpace selection (note that in CE what we call a Workspace in V8i is a Configuration, and a Configuration can contain more than one WorkSpace) that will make it fairly obvious that the local WorkSpace has been selected.
In V8i if you have a working if/else sequence you can use the %error directive to send a message to a text window, e.g.:
%if exists (<path>) <someVariable> = <value> %error <informative text string, all on one line> %endif
But the V8i application will not proceed any further, which is OK if you want to stop people from proceeding to use the local workspace, but no use if you just wish to warn them.
To load a warning dialog that was interactive would require some work with VBA so is more complex.