Thanks, Shiva. I tried your suggestion, but got an "InfoPath cannot open the selected form." Let me just clarify what I'm doing. I have an InfoPath form named Project Status. In this form I've added a button control in the form named View Financial Data. Theoretically, when someone presses this button, an html page (http://nummdp01/Sites/BusinessPortal/Financial%20Summary.htm) opens up in a separate window. This is because the Project Status form contains status information for the given project, but the financial information is found in a separate place (webpage).
So, based on the information you provided, I double-clicked on the button in the form to open it for edit and then clicked on the Edit Form Code... In Microsoft Script Editor, the following information was present (I've excluded the non-essential comments)...then plugged in the URL I need to launch in the 'function CTRL84_8::OnClick(eventObj)'. I presume this is the function that handles the depressing of the button.
//general comments...
XDocument.DOM.SetProperty ("SelectionNamespaces", 'xmlns:x....")
//</namespacesDefinition>
//general comments...
function XDocument::OnLoad(eventObj)
{
// Write your code here
}
//more comments
function CTRL84_8::OnClick(eventObj)
{
//Write your code here
Application.XDocuments.Open(<http://nummdp01/Sites/BusinessPortal/Financial%20Summary.htm>)
}
What am I doing wrong? Again thanks for help.