Invalid context for OM call. - InfoPath Dev
in

InfoPath Dev

Invalid context for OM call.

Last post 02-22-2007 05:58 AM by ekzarov. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-22-2007 03:04 AM

    Invalid context for OM call.

    In my form template I have created Changed Event handler for my Text control:
    public void myField_Changed(object sender, XmlEventArgs e)
    {
    // Write your code here to change the main data source.
    }


    When write this code:
    public void myField_Changed(object sender, XmlEventArgs e)
    {
    ViewInfos.SwitchView(ViewName);
    }

    I get error:
    Invalid context for OM call.
    Is there a posibility to change view, after field was changed ???
    Best regards,
    Alexander Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 02-22-2007 04:57 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Invalid context for OM call.

    Hi Alexander Ekzarov,

    In On After change event we don#%92t have an option called ‘Switch View#%92. Which ever we don#%92t have this options in rules for on after change event. This not supported to invalid context for object model in InfoPath form. We can switch view by clicking on button.
  • 02-22-2007 05:58 AM In reply to

    Re: Invalid context for OM call.

    Well, thanks any way :(
    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.