Deleting Rules - InfoPath Dev
in

InfoPath Dev

Deleting Rules

Last post 05-20-2009 03:24 PM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-19-2009 02:14 PM

    Deleting Rules

    I'm using an infopath 2007 and I've deleted some rules that used to be part of the form.  I noticed, when I reviewed the logic inspector, that the Rules are still there.

     Errors are being generated now that I have removed the DataSources that those 'deleted' rules are trying to access.  How can I get rid of these rules?  Can I manually deleted them from manifest.xsl?  If so, how?

  • 05-19-2009 10:26 PM In reply to

    Hi,

    No need to delete the rules manually in manifest.xsf.  Just delete those in the form and save the form. Now verify the logic inspector.

    Swathip
    www.ggktech.com
  • 05-20-2009 07:18 AM In reply to

    I've deleted some rules that used to be part of the form.  I noticed, when I reviewed the logic inspector, that the Rules are still there.

     I had saved the form prior to viewing the logic inspector and although the rule have been deleted through Infopath, they still appear in the logic inspector.

  • 05-20-2009 03:24 PM In reply to

    You can save as source files and open manifest.xsf and look for xsf:ruleset elements. Save a copy of your form first, of course, in case you delete something you don't need to. From the MSDN documentation:

    Example

    The following is an example of the ruleSets element:

    <xsf:ruleSets>
     <xsf:ruleSet name="RuleSet1">
      <xsf:rule caption="Receipts" condition="my:expense> 75">
       <xsf:dialogBoxMessageAction>Don't forget receipts!</xsf:dialogBoxMessageAction>
        <xsf:openNewDocumentAction solution="urn:approvalForm"/>
        <xsf:exitRuleSet/>
      </xsf:rule>
      <xsf:rule caption="Always Submit" isEnabled="no">
       <xsf:submitAction adapter="Expense Database"/>
      </xsf:rule>
     </xsf:ruleSet>
    
     <xsf:ruleSet name="RuleSet2">
      <xsf:rule caption="Look up contact">
       <xsf:queryAction adapter="Contacts"/>
      </xsf:rule>
     </xsf:ruleSet>
    </xsf:ruleSets> 

    Hilary Stoupa

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