>Hi
>
>I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the execute action with couple of parameters.
>
>I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.
See the Structual Editing SDK sample on the InfoPath CD, specifically,
the ApplyDiscount button on the toolbar.
The manifest.xsf has this in the toolbar
<xsf:button name="RemoveDiscount" caption="No Discount"></xsf:button>
And this in the script
function RemoveDiscount::OnClick()
{
// Custom code
}
Regards,
Steve
--
Please post questions to the newsgroup; everyone benefits.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
G. Tarazi - 24 Sep 2004 02:05 GMT
Thank you
> >Hi
> >
> >I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the
execute action with couple of parameters.
> >I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.
>
[quoted text clipped - 16 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Sample code subject to http://www.microsoft.com/info/cpyright.htm