M
Mike C
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.
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.