From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-04-2014 07:28 AM
07-04-2014 07:51 AM
You can generate an user event by checking the "Keyfocus" property of the Text box (String control).
07-04-2014 07:59 AM - edited 07-04-2014 08:00 AM
07-04-2014 08:09 AM
07-04-2014 08:13 AM
Just did 🙂
07-05-2014 05:35 PM
What is it exactly that you are trying to accomplish? Why do you want to generate an event then?
Mike...
07-06-2014 05:06 AM - edited 07-06-2014 05:12 AM
Example: User enters a name of an employee to a string control. Once I detect the "value change" event, I make a search in a DB and list some properties associated to the employee. These params can be modified and saved by the user. It is possible though that the user modifies some of the parameters but the decide to return to the original values. In this case he has to enter a different text into the text field and then reenter the name of the employee. Simply entering to the textfield and pressing enter does not trigger the value change event as the value didnt changed so the default values are not loaded back.
Now you can ask why dont I simply have a load button. The example above is quite simplified. A load button is not feasible, Detecting a lost focus would resolve my problem though. And I can realize this function but query the focus status of the field in every 10ms, I am just wondering if there is a more elegant way to do it.
07-06-2014 07:40 AM
07-06-2014 08:18 AM
Thanks... for this case checking the keypress works just fine! I was thinking about registering custom event, which I did, but it is an overkill as I can just check for keypress.