Process rules after executing the code - InfoPath Dev
in

InfoPath Dev

Process rules after executing the code

Last post 07-31-2009 12:09 PM by kalyan@infopath. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 07-30-2009 02:21 PM

    Process rules after executing the code

    Hi, I have a requirement where i need to process rules after executing the code, which is related to a check box validating event. In general as per my experience i found that rules execute first and then the code. I have an event handler which is to be executed base on checking and unchecking the check box. If i check the check box the code is to be executed and at the end of the code i am assigning a value to a hidden field in the form, which is to be used later to the rules for this check box. My problem here is if i set up any rule based on the hidden fields value which was assigned by the event handler code. So here if i check the check box already assigned value is checked with the given rules. But i want it to be done now, means first code should be executed and then the value in the hidden field should be checked with the new value. Any help would be greatly appreciated. Thanks in advance, kalyan.
  • 07-30-2009 04:12 PM In reply to

    Re: Process rules after executing the code

    Why don't you also set the field's value in code? You can 'force' code to run before rules, check out this blog post for more info...

    Hilary Stoupa

  • 07-31-2009 08:01 AM In reply to

    Re: Process rules after executing the code

    Hi Hillary, I am setting the field's value in the code, but i want to show a message box based on that field's value ( I saw that we can't show a message box in browser enabled forms using code) I have looked at the blog, it was really interesting but i have a question on this. Can i call the validating or changed event method also? If i am able to call the validating or changed event methods i should be able to stop executing the code after the rule finishes. If not possible can i write my own method which can get the current row's data based on checking the check box. Thanks, Kalyan
  • 07-31-2009 08:11 AM In reply to

    Re: Process rules after executing the code

    But dialog box message aren't supported from rules in Browser forms either.


    Hilary Stoupa

  • 07-31-2009 08:20 AM In reply to

    Re: Process rules after executing the code

    Is there any other way to show dialog box messages in browser enabled infopath forms either programatically or any other way..
  • 07-31-2009 08:28 AM In reply to

    Re: Process rules after executing the code

    Not that I know of, nor that I can find mention of online. This thread suggests conditionally formatted expression boxes as a work around.

    Hilary Stoupa

  • 07-31-2009 08:30 AM In reply to

    Re: Process rules after executing the code

    I may have spoken too quickly -- check out this blog post. I have no idea if this works...

    Hilary Stoupa

  • 07-31-2009 12:09 PM In reply to

    Re: Process rules after executing the code

    Thanks Hillay, I will try that. Thanks, Kalyan
Page 1 of 1 (8 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.