How to get to a specific control thoughcode (infopath 2003) - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to get to a specific control thoughcode (infopath 2003)

Last post 07-28-2009 05:23 PM by lvcsslacker. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-28-2009 03:36 PM

    How to get to a specific control thoughcode (infopath 2003)

    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'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't be able to recall the key combination (older, non computer users typically.). I'd like to be able to clear the box when it's clicked. Perhaps an alternate solution could be to code the button to undo, but I think I'd prefer to use it as a picture clear. If it's any help, I'm using VBScript... If there's any additional information necessary, I'll be more than happy to help provide it.
  • 07-28-2009 04:01 PM In reply to

    Re: How to get to a specific control thoughcode (infopath 2003)

    For typical InfoPath controls, you can use an OnContextChange event, but for the ink control you wouldn't get the event until after they had inked, so that's a no-go.

    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 "" (blank). That's easy and doesn't require much work. You can make it look fine too - I'd recommend a little X button in the upper right hand corner of the ink control, or just a button with "Clear" on it. :) Happy trails.

    Patrick Halstead
    Project Manager at Qdabra
  • 07-28-2009 05:23 PM In reply to

    Re: How to get to a specific control thoughcode (infopath 2003)

    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't say I'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.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.