Form code does not work if form contains at least one Web-Service connection. - InfoPath Dev
in

InfoPath Dev

Form code does not work if form contains at least one Web-Service connection.

Last post 04-03-2008 08:24 PM by DanchoPancho. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-01-2008 10:30 PM

    Form code does not work if form contains at least one Web-Service connection.

    Hi everyone!

    When my XSN forms contain at least one Web-Service connection (even without binding to particular fields) a form code is not executed in my XmlFormView host page. But it works fine in the default SharePoint Portal's page http://[servername]/_layouts/FormServer.aspx. I re-read an article about Hosting XmlFormView contol in custom ASP.NET pages (http://msdn2.microsoft.com/en-us/library/aa701078.aspx) twice and strongly followed instructions. But I still have the problem. Also the Header/Footer toolbar buttons do not work either (in my page).

    Here is my code in the form:

    public void BTN_TEST_Clicked(object sender, ClickedEventArgs e)
    {
        XPathNavigator nav = MainDataSource.CreateNavigator().SelectSingleNode("/Root/CreditRequest/ClientInfo/Name");
        nav.SetValue("Hello World!");
    }

    I repeat it doesn’t work in my ASP.NET page, only if I have any Web-service Data connection but it works in the native SharePoint’s form page (http://[servername]/_layouts/FormServer.aspx).

    Any ideas?

  • 04-03-2008 08:24 PM In reply to

    Re: Form code does not work if form contains at least one Web-Service connection.

    I've solved the problem. My bad. I was creating a new ASP.NET application for a folder of the XmlFormView hosting page instead of leaving it as it was.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.