what comes first? - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

what comes first?

Last post 08-05-2009 12:46 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-03-2009 05:25 AM

    what comes first?

    hello all,
    I have a browser enabled form published to form server.
    in the form tamplate i have some lines of code on the form_Loading event
    I also have some rules when the form is opening.
    my question is what comes first?
    is it the code or the rules? and can i decide the order myself ?
    thanx in advanced..


  • 08-05-2009 12:46 PM In reply to


    According to Patrick Halstead's Developing Solutions with Microsoft InfoPath:

    The order of processing at startup of a form is:

    1. User roles
    2. Open rules
    3. OnLoad event handler
    4. OnSwitchView event handler

    From page 322. Now, that was written for 2003, so browser forms weren't in play, but I'd imaging the processing order is still the same. It should be simple enough to test -- you could add a rule in your open rules to set a fields value, then add a line of code in your loading event to set the same field to a different value -- publish and open your form and see what value you get....

    Hilary Stoupa

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