<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Enabling or Disabling of Custom Toolbar Buttons</title><link>https://www.infopathdev.com:443/forums/thread/7393.aspx</link><pubDate>Mon, 08 Aug 2005 05:40:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7393</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7393</wfw:commentRss><description>Hi Neel,&lt;br /&gt;You could probably write code to do it, but I have never heard of anyone actually doing this. Why not just put the buttons in your form. Then, it's easy.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Enabling or Disabling of Custom Toolbar Buttons</title><link>https://www.infopathdev.com:443/forums/thread/7392.aspx</link><pubDate>Mon, 08 Aug 2005 03:57:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7392</guid><dc:creator>neel_hp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7392</wfw:commentRss><description>hi,&lt;br /&gt;   thaknx,for prompt reply,&lt;br /&gt;   i will try it out but, can we enable or disable custom tool&lt;br /&gt;   bar button based on a field's value in infopath form template.&lt;br /&gt;   &lt;br /&gt;</description></item><item><title>Re: Enabling or Disabling of Custom Toolbar Buttons</title><link>https://www.infopathdev.com:443/forums/thread/7391.aspx</link><pubDate>Fri, 05 Aug 2005 16:45:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7391</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7391</wfw:commentRss><description>Hmm. I don't know of any direct way to enable/disable the toolbar buttons unless they are tied to insert/delete of optional/repeating sections -- and then its fairly automatic.&lt;br /&gt;&lt;br /&gt;I do recall reading other discussions (don't recall where) in which people used full trust forms and code that reached directly into the InfoPath window to do this kind of work -- but I think that was more for the InfoPath system menus and buttons. I don't recall if that is the same approach needed here or not.&lt;br /&gt;&lt;br /&gt;I really don't know on this one. There might be a way, I just can't think of it though. I don't recall seeing anything in the DOM for it.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: Enabling or Disabling of Custom Toolbar Buttons</title><link>https://www.infopathdev.com:443/forums/thread/7390.aspx</link><pubDate>Fri, 05 Aug 2005 14:59:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7390</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7390</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;If you make this in debug or preview mode it's normal you need to publish your form in full trust! go on tools-&amp;gt;form option-&amp;gt;security and change the security level tofull trust and sign it! Go on msdn website you can find a very good explanation for the security level and how to sign a form in infopath!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Enabling or Disabling of Custom Toolbar Buttons</title><link>https://www.infopathdev.com:443/forums/thread/4833.aspx</link><pubDate>Fri, 05 Aug 2005 10:21:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4833</guid><dc:creator>neel_hp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4833</wfw:commentRss><description>Hi all,&lt;br /&gt;       I am developing a infopath form in which i have added a custom &lt;br /&gt;       toolbar , now i want to add functionality to enable or&lt;br /&gt;       disable button in toolbar based on role defined in Tool--&amp;gt;User&lt;br /&gt;       roles menu. &lt;br /&gt;       I tried doing this through VS.NET toolkit for infopath.&lt;br /&gt;       and first registered the form template through regform&lt;br /&gt;       utility and trying to disable the button in custom toolbar&lt;br /&gt;       using Microsot Office core library as a reference.&lt;br /&gt;       but still it is giving security related exception as&lt;br /&gt;       System.Security.SecurityException&lt;br /&gt;               That assembly does not allow partially trusted callers.&lt;br /&gt;             at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)&lt;br /&gt;             at InfoPathProject2828.InfoPathProject2828.OnLoad(DocReturnEvent e)&lt;br /&gt;            at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnLoad(DocReturnEvent pEvent)&lt;br /&gt;&lt;br /&gt;please help me out and suggest if their are any other method for disabling or enabling of custom tool bar buttons based on user roles.&lt;br /&gt;</description></item></channel></rss>