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 / May 2007

Tip: Looking for answers? Try searching our database.

Need to find out what document library a form was opened from

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike C - 16 Apr 2007 21:12 GMT
I have a site collection in MOSS 2007 with a centrally managed form library.
This site collection has many sub sites. I have Infopath forms that are
available on the "New" dropdown as content types in a document library on
each sub site. What I need to know inside the form when it is opened is which
site or document library the form was opened from. These forms are being
opened in Infopath and not the browser so using the below does not work:

e.InputParameters["SaveLocation"].ToString();

Once a form is save the below works but I can not get anything to work from
the new button.

e.InputParameters["XmlLocation"].ToString();

I also tried this:

substring-before(substring-after(processing-instruction(), 'href="'), '"')

but that gives you the location where the form template exists, which is on
the parent site. Any help would be appreciated.
Karthik - 17 Apr 2007 10:44 GMT
Hi Mike,

My simplest logic for tackling this problem would be adding a field and have
a unique id for each of the sub site. This id would be populated in the newly
added field during OnLoad() event or wherever you want. When you want to the
previous place where the template is opened from can be got by accessing this
field and your logic goes based on the id you get.

Hope this solves your problem.

regards,
Karthik
Mike C - 03 May 2007 13:50 GMT
The problem is I have the forms set up as content types in a site template so
when new sites are created the forms are available on these sites so there is
no way for me to keep track of the sites if the user creates them.

> Hi Mike,
>
[quoted text clipped - 8 lines]
> regards,
> Karthik
 
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.