Current state of the object - InfoPath Dev
in

InfoPath Dev

Current state of the object

Last post 02-27-2007 11:27 PM by ekzarov. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-22-2007 09:26 AM

    Current state of the object

    Hello. I have MOSS 2007 and Infopath 2007.
    My form template published as content type to sharepoint library.
    It contains this code:

    public void FormEvents_Loading(object sender, LoadingEventArgs e)
    {
    NamespaceManager.AddNamespace("xsf", "http://schemas.microsoft.com/office/infopath/2003/solutionDefinition");
    this.Template.Manifest.CreateNavigator().SelectSingleNode("xsf:submit/xsf:davAdapter[@name='MainSubmit']/xsf:folderURL/@value", NamespaceManager).SetValue(Url);
    }


    When I load my form from library I get exception:
    Operation is not valid due to the current state of the object.
    Have you any ideas ???
    Best regards,
    Alexander Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 02-27-2007 09:51 PM In reply to

    Re: Current state of the object

    Hi Alexander,
    Who calls this function? How about moving it to the OnLoad event handler? Sounds like it's called earlier than it should be called.
    Patrick Halstead
    Project Manager at Qdabra
  • 02-27-2007 11:27 PM In reply to

    Re: Current state of the object

    Hi, Patrick !
    I have browser-enabled form and all that I have is just FormEvents_Loading event, wich occurs when form has loaded ...
    And one more thing:
    this.Template.Manifest.CanEdit return for me "false"...
    Best regards,
    Alexander Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.