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 2007

Tip: Looking for answers? Try searching our database.

Get form path or URL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kookie - 09 Feb 2007 17:01 GMT
Is there a way to display the path or URL to the form? I am using the forms
to display content. the output changes from time to time. not all viewers
have rights to edit content. So creating a change request process I need a
way to refer to this form easily for the viewer. If i could generate a field
that writes or displays the URL of the form I could capture this in my
request. this would be easier for the writers to find the form to make the
changes.

I am not commited to this setup. I am open if there is another way to
accomplish this.
kookie - 13 Feb 2007 18:51 GMT
here is the result:

var strURI = XDocument.Solution.URI; //template path
var strFormLib = strURI.substr(0, strURI.indexOf("Forms/template.xsn")); //
remove this from path
var strFormName = XDocument.URI // file path URL

var strURL = XDocument.DOM.selectSingleNode("/my:myFields/my:URL");
//strURL.text = strFormLib + "/" + strFormName;
strURL.text = strFormName;

on way you can get the the library the form in in the other way returns the
full path with file name

> Is there a way to display the path or URL to the form? I am using the forms
> to display content. the output changes from time to time. not all viewers
[quoted text clipped - 6 lines]
> I am not commited to this setup. I am open if there is another way to
> accomplish this.
 
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.