Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2006

Tip: Looking for answers? Try searching our database.

Any way to add a InfoPath form as a template in a custom site template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian Madden - 04 Feb 2006 05:38 GMT
Hi all,
I have a big problem I'm trying to solve right now. I have a custom site
template that requires a forms library with an InfoPath form as a template.
Now, I have the site template adding the new forms library with the InfoPath
form working on my development server and it works pretty well. My block
is in moving the site template to QA, which is a different server. The publishURL
on the InfoPath form points to the dev server and the form will not display
at all. Is there any way to modify the InfoPath form to work in QA? I need
to have the form work on multiple sites, so I would need to do this programmatically
I'm guessing.
Has anybody done this before???

Thanks!
Brian
Adam Harding - 14 Feb 2006 10:35 GMT
Brian

If i am understanding this correctly all you need to do is re-publish the
form to the QA Site virtually by placing it phyiscally on the OTHER server eg

DATRSAFDWCL002\DEV\Infopath
DATRSAFDCWL003\QA\Infopath

To make it extra clever you can publish the form onto the QA server but use
the DEV server path to specify the DEV server, but that is really just
complicating things.

Cheers Adam

> Hi all,
> I have a big problem I'm trying to solve right now. I have a custom site
[quoted text clipped - 10 lines]
> Thanks!
> Brian
Rob Robinson - 16 Feb 2006 18:47 GMT
Brian -

You publish the Xsn file to the new server, then copy all the xml files to
the new server, and the problem is that all the Xml files still point to the
Xsn on the old server, right? You need to do a bulk replace of the Xml files,
altering the Xsn file location. I've been doing this with a freeware utility
called "_Replace.exe" (http://llbest.com/_REPLACE.htm), in a CMD file. This
is also handy for pointing the Xml files to a new version of an Xsn, with a
different file name. The command file is shown below. By the way, I believe
the InfoPath installation also includes a similar batch utility for doing
mass updates of xml files.

@ECHO OFF
REM Does a "multiple file global search and replace". (Does a search and
replace
REM operation on all of the .TXT files in a particular folder.)
REM
REM _REPLACE "search string" ["replacement string"]
REM     [/I] [/S] [/T] [/MIN=n] [/MAX=n] [/EXT=s]
REM
REM  /I      Ignore case.
REM  /S      Include subdirectories.
REM  /T      Test mode (Do not make any actual changes to any files).
REM  /MIN=n  Minimum allowable replacements per file (Default = 0).
REM  /MAX=n  Maximum allowable replacements per file (Default = 99999).
REM  /EXT=s  Perform operations only on files with extension s (Default =
.txt).
REM
REM If "replacement string" is omitted, a null replacement string is used.
REM
REM 6 types of search/replacement string characters have special
representations:
REM
REM  Backslash (\)    - "\b" or "\B"
REM  New line         - "\n" or "\N"
REM  Percent sign (%) - "\p" or "\P"
REM  Quote sign (")   - "\q" or "\Q"
REM  Tab              - "\t" or "\T"
REM  Decimal code     - "\ddd" where ddd is a 3 digit number between 001 &
255.
REM
ECHO Global search and replace for InfoPath XSN version.
ECHO ----------------------------------------------------
ECHO Be sure you have modified this script to reference the old and new
ECHO template files referenced by the .xml documents. If you have not, then
ECHO press Ctrl-C and cancel this script.  Otherwise,
PAUSE

_replace "\b\bDevServer\bTemplates\bYourTemplate.xsn"
"\b\bQAServer\bTemplates\bYourTemplate.xsn" /i /s /EXT=.xml

ECHO Replacement complete.
PAUSE
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.