Yes, it works just fine. If you have it on an HTTP server, it will even be
loaded from the wininet cache and sometimes work offline. (Also sometimes
get out of date if you're editing the file, but that's a rare and
understandable case.)
I wish InfoPath let you have controled caching of secondary data sources
such as config files, as this is a very common scenario.
--Matthew Blain
http://tips.serriform.com/
When adding a data connection (in this case a config.xml file), InfoPath
asks you, at the last step, if you want this file included as part of the
form. I haven't tried it myself, but I believe that if you say "No", that it
will use a hard-coded full path to that resource.
My assumption (not having tried this) is that if the resource is hosted on a
server, as long as the other users have the same path access to that stored
location that the config.xml file does not need to be part of the XSN and
can still be accessed.
If you play with this, please post your findings as I haven't had time to
try it, but am currious if it works as I expect.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
Andrew Ma said:
Have you tried naming it INFOPATH.EXE.CONFIG.
Check the value of
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile.
I've checked that value; it was:
@"C:\Program Files\Microsoft Office\OFFICE11\INFOPATH.EXE.config"
So you're right. It's probably not the way I want to proceed... -Although it
works fine and I might use it anyway
Using a secondary data source isn't the right solution for me as well,
because when I publish my form (which is fully trusted btw) it will become
part of the xsn-file and this is not what I want either...