Forum Discussion
The test in jawascript. in Appendix of this test result
function Test1()
{
var loadData;
var frmLoadData;
var panelControl;
var textBoxMaskBox;
TestedApps.LoadData.Run();
loadData = Aliases.LoadData;
loadData.frmLogin.PanelControl1.pnButtons.cmbOK.ClickButton();
loadData.XtraMessageBoxForm.SimpleButton.ClickButton();
frmLoadData = loadData.frmLoadData;
panelControl = frmLoadData.pnCommand;
panelControl.rgMode.ClickItem("Load multiple periods");
textBoxMaskBox = frmLoadData.pnPeriods.nupMultPer.TextBoxMaskBox;
textBoxMaskBox.Drag(12, 7, 38, 5);
textBoxMaskBox.SetText("40");
textBoxMaskBox.Keys("[Enter]");
panelControl.pnButtons.cmbExit.ClickButton();
}
So, looking at that, I'm guessing you're expecting the event to trigger once you enter "40" into the text box? But it doesn't.
Does [ENTER] cause it to exit the field? Maybe try [TAB] instead?
But the easiest thing would be to ask the developers what activates the event trigger.
(The action after entering "40" seems to be clicking an exit button of some sort? Are you allowing enough time for the event to happen before you click this exit button?)
**EDIT**
I just noticed, you're using SetText to set the value. Maybe try using Keys instead. I think SetText is like changing a property of the control. Keys is like the user actually keying things in. I've had occasions where SetText appered to work, but the value was not retained. Using Keys, it was fine.
- alla_19 years agoOccasional Contributor
Tab - I did - the same result. Delays put - did not help.
- Colin_McCrae9 years agoCommunity Hero
Keys instead of SetText?
After that, you'll need to speak to the devs and find out what the trigger is. We're guessing at the moment ...
- alla_19 years agoOccasional Contributor
Using the "key" helped, thank you