Getting infopath file path and name...

R

RocketMan

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top