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

Tip: Looking for answers? Try searching our database.

Getting infopath file path and name...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RocketMan - 04 Apr 2007 23:22 GMT
I figured out how to get onsaverequest to work and only added the UI
Alert to see what was in the object, but filename is always blank:

function XDocument::OnSaveRequest(eventObj)
{
       XDocument.UI.Alert("Filename is:"+eventObj.FileName);
       eventObj.IsCancelled = eventObj.PerformSaveOperation();
       XDocument.UI.Alert("Filename is:"+eventObj.FileName);
       eventObj.ReturnStatus = true;
       XDocument.UI.Alert("Filename is:"+eventObj.FileName);
}

What I want is the filename and path in one string if possible.  HELP!
kookie - 05 Apr 2007 00:14 GMT
var sFileName = XDocument.URI; // file path URL

> I figured out how to get onsaverequest to work and only added the UI
> Alert to see what was in the object, but filename is always blank:
[quoted text clipped - 9 lines]
>
> What I want is the filename and path in one string if possible.  HELP!
 
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.