<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to get to a specific control thoughcode (infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45135.aspx</link><pubDate>Wed, 29 Jul 2009 00:23:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45135</guid><dc:creator>lvcsslacker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45135.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45135</wfw:commentRss><description>Thanks! That seems to have worked. And as I was researching more, it seems an undo button would be hard to create, again, because of me not knowing how to programatically get to the data sources...

Something about an xPathNavigator or something... I can&amp;#39;t say I&amp;#39;m the least bit familiar with it... I may have a couple more questions kind of relating to this as well. But again, I do want to thank you for the quick response. That helped out a lot.</description></item><item><title>Re: How to get to a specific control thoughcode (infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45131.aspx</link><pubDate>Tue, 28 Jul 2009 23:01:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45131</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45131.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45131</wfw:commentRss><description>&lt;p&gt;For typical InfoPath controls, you can use an OnContextChange event, but for the ink control you wouldn&amp;#39;t get the event until after they had inked, so that&amp;#39;s a no-go.&lt;/p&gt;
&lt;p&gt;My suggestion would be to use a button that they can click to clear it. The button has a rule with an action to set the value of the field to &amp;quot;&amp;quot; (blank). That&amp;#39;s easy and doesn&amp;#39;t require much work. You can make it look fine too - I&amp;#39;d recommend a little X button in the upper right hand corner of the ink control, or just a button with &amp;quot;Clear&amp;quot; on it. :) Happy trails.&lt;/p&gt;</description></item><item><title>How to get to a specific control thoughcode (infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45129.aspx</link><pubDate>Tue, 28 Jul 2009 22:36:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45129</guid><dc:creator>lvcsslacker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45129.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45129</wfw:commentRss><description>Hey all.  Somewhat of an infopath newbie here, but have managed to make it do what I want for the most part. At least, until today.

Here&amp;#39;s a description of what I want to do:

The users can draw on an inkpicture. What I want to do is click a button and erase the stuff on the picture (in case of an error). There is some code in the tablet PC SDK that I could use for it (from what I can tell...), or I could have them hit control + z to undo it. However, my target users probably wouldn&amp;#39;t be able to recall the key combination (older, non computer users typically.).  I&amp;#39;d like to be able to clear the box when it&amp;#39;s clicked. 

Perhaps an alternate solution could be to code the button to undo, but I think I&amp;#39;d prefer to use it as a picture clear.

If it&amp;#39;s any help, I&amp;#39;m using VBScript... If there&amp;#39;s any additional information necessary, I&amp;#39;ll be more than happy to help provide it.</description></item></channel></rss>