custom button in toolbar with rules from default button

custom button in toolbar with rules from default button

Post by Manch » Fri, 23 Dec 2005 00:04:44


Can I add a rule of a default button in form in manifest.xsf in a
custom toolbar button?

When I copy a rule from default button in form to a custom toolbar
button I get an error. InfoPath doesn't opened.
I need a rule in a custom toolbar button.

My modified manifest.xsf:

<xsf:toolbar caption="MyCaption" name="myToolbar">
<xsf:button name="btnCancel" caption="Cancel" icon="106">
<xsf:ruleSetAction ruleSet="ruleSet_9"></xsf:ruleSetAction>
</xsf:button>
</xsf:toolbar>

<xsf:unboundControls>
<xsf:button name="btnTestClose">
<xsf:ruleSetAction ruleSet="ruleSet_9"></xsf:ruleSetAction>
</xsf:button>
</xsf:unboundControls>
 
 
 

custom button in toolbar with rules from default button

Post by Greg Colli » Sun, 25 Dec 2005 09:41:44

You can't use rules with toolbar buttons, you can however hook the button up to code.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.yqcomputer.com/




Can I add a rule of a default button in form in manifest.xsf in a
custom toolbar button?

When I copy a rule from default button in form to a custom toolbar
button I get an error. InfoPath doesn't opened.
I need a rule in a custom toolbar button.

My modified manifest.xsf:

<xsf:toolbar caption="MyCaption" name="myToolbar">
<xsf:button name="btnCancel" caption="Cancel" icon="106">
<xsf:ruleSetAction ruleSet="ruleSet_9"></xsf:ruleSetAction>
</xsf:button>
</xsf:toolbar>

<xsf:unboundControls>
<xsf:button name="btnTestClose">
<xsf:ruleSetAction ruleSet="ruleSet_9"></xsf:ruleSetAction>
</xsf:button>
</xsf:unboundControls>