Forum Discussion

kaju's avatar
kaju
New Contributor
15 years ago

DevExpress, TcxCustomInnerTextEdit and Database-Binding

Hi...



I've created a simple keyword test where I've tryed to enter a text to a TcxDbTextEdit. This edit field is binded to a database field. The test creates the following code:



Object

...edtName.TcxCustomInnerTextEdit



MethodOrProperty

SetText



Name/Value

Text=HelloWorld



After that, I've simulated a key-sequence (TAB) to change the focus.



My problem is, that the input "HelloWorld" is correctly inserted BUT NOT SAVED to the database. As soon as the editfield losts it's focus, the entered text disappears.



Do you have any solution for me?



Thank you & best regards,

Marc

2 Replies


  • Hi Marc,





    It looks like the problematic edit box does not change its text if its events corresponding to keystrokes are not fired. The SetText action does not raise such events, so try using the Keys action instead of SetText. You can make TestComplete use the Keys action when recording a test if you set the "Record text input into simple editors as" option described in the "Recording Options Dialog" help topic to "Keys". After that, try re-recording your test.


  • kaju's avatar
    kaju
    New Contributor
    Hi...



    I've replaced the setText with normal keystrokes entering the text...and this works.



    Thank you,

    Marc