qRule - finishedLoading - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

qRule - finishedLoading

Last post 05-04-2021 08:11 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-04-2021 06:36 AM

    qRule - finishedLoading

    In InfoPath, a new load rule starts with the default condition "None - Rule runs when form is opened" - Injecting qRules and copying the load rules to FinishedLoading , the condition remained the same, but I don't know what would make this field change. I viewed some early qRules UTube videos and I noticed that the rule in some were finishedLoading = TRUE. Is this what I need to change all of my copied rules to if I want them to automatically trigger?
    Filed under: ,
  • 05-04-2021 08:11 AM In reply to

    The finishedLoading field is false by default. Once qRules code finishes loading in the form, it gets set to true. So - in general, you could add a condition that "finishedLoading = true" to your rules. However - you could also just assume the only thing that will change finishedLoading is the qRules logic, and that it will only change on time (since the code is what sets it) OR you could add a stop rule at the beginning that prevents the rest of the rules from running when it is NOT true. For example, I usually have a form logic XML data connection in my forms with a field named "stop" and at the beginning of my finishedLoading rules, will add a rule with the condition "finishedLoading is not true" and the action to set stop to blank, and not run any additional rules. Simple sample attached - save the file locally, right click and select design, then you can preview / look at the rules / etc.
    Hilary Stoupa

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