diegojmap Posted August 12, 2016 Posted August 12, 2016 I'm testing the OnValidade ClientDataSet event, this code:TUniMainModule.ClientDataSet1CODIGOValidate procedure (Sender: TField);begin ClientDataSet1DESCRICAO.clear; if ClientDataSet1CODIGO.AsString = '01' then ClientDataSet1DESCRICAO.AsString: = 'first'; if ClientDataSet1CODIGO.AsString = '02' then ClientDataSet1DESCRICAO.AsString: = 'Second'; if ClientDataSet1CODIGO.AsString = '03' then ClientDataSet1DESCRICAO.AsString: = 'Third'; if ClientDataSet1CODIGO.AsString = '04' then ClientDataSet1DESCRICAO.AsString: = 'Room'; if ClientDataSet1CODIGO.AsString = '05' then ClientDataSet1DESCRICAO.AsString: = 'Fifth'; if ClientDataSet1CODIGO.AsString = '06' then ClientDataSet1DESCRICAO.AsString: = 'Sixth'; if ClientDataSet1CODIGO.AsString = '07' then ClientDataSet1DESCRICAO.AsString: = 'Seventh'; if ClientDataSet1CODIGO.AsString = '08' then ClientDataSet1DESCRICAO.AsString: = 'Eighth'; if ClientDataSet1CODIGO.AsString = '09' then ClientDataSet1DESCRICAO.AsString: = 'new'; if ClientDataSet1DESCRICAO.AsString = '' then begin MainForm1.MessageDlg ( 'Invalid Code', mtInformation [mbOK]); abort; end;end;The problem is that the type 0, it triggers the event, have some form of so trigger the event when I give Tab or Enter?Version 0.99.0.1169 Tryal Quote
diegojmap Posted August 18, 2016 Author Posted August 18, 2016 It seems that validate fires every letter typed, is there any setting for this? I did not find it Quote
easegura777 Posted August 30, 2021 Posted August 30, 2021 On 8/18/2016 at 8:37 AM, diegojmap said: It seems that validate fires every letter typed, is there any setting for this? I did not find it @Sherzod You can help us with this iussue? Sherzod Quote
Sherzod Posted August 30, 2021 Posted August 30, 2021 Hello @easegura777, Could you please explain your case? Quote
easegura777 Posted August 30, 2021 Posted August 30, 2021 Just now, Sherzod said: Hola @ easygura777, ¿Podría explicar su caso? My validations are in the OnValidate event of the field and the validation is done on each keystroke Quote
easegura777 Posted August 30, 2021 Posted August 30, 2021 7 minutes ago, easegura777 said: My validations are in the OnValidate event of the field and the validation is done on each keystroke i still experience it! Quote
charles13115255 Posted December 20, 2024 Posted December 20, 2024 Hi~~ Admin: This problem appears again in the new version!! Can you help confirm again? Thank you very much. Quote
Sherzod Posted December 20, 2024 Posted December 20, 2024 10 minutes ago, charles13115255 said: This problem appears again in the new version!! Hello, Which build? Quote
charles13115255 Posted December 20, 2024 Posted December 20, 2024 1 hour ago, Sherzod said: Hello, Which build? Hi~~ this version: uni-1.90.0.1565 best wishes. Quote
Sherzod Posted December 20, 2024 Posted December 20, 2024 2 hours ago, charles13115255 said: uni-1.90.0.1565 Can you try to check on the latest builds? Also, if possible, create a test case, we will try to check. Quote
charles13115255 Posted December 23, 2024 Posted December 23, 2024 On 12/20/2024 at 5:41 PM, Sherzod said: Can you try to check on the latest builds? Also, if possible, create a test case, we will try to check. Hi~ Admin: Test file has been attached. Note: When I turn off the Ttimer, it(OnValidate) works fine. UniDBEditOnValidateTEST.zip Quote
charles13115255 Posted December 26, 2024 Posted December 26, 2024 On 12/23/2024 at 4:10 PM, charles13115255 said: Hi~ Admin: Test file has been attached. Note: When I turn off the Ttimer, it(OnValidate) works fine. UniDBEditOnValidateTEST.zip 9.4 MB · 0 downloads Hello~~ Can anyone help me solve this? Thank you so much~~ Quote
Sherzod Posted December 26, 2024 Posted December 26, 2024 2 hours ago, charles13115255 said: Can anyone help me solve this? Thank you so much~~ Hello, I am analyzing. However, maybe it would be better for you to use other events, such as OnExit or BeforePost? Quote
charles13115255 Posted January 6 Posted January 6 On 12/26/2024 at 1:13 PM, Sherzod said: Hello, I am analyzing. However, maybe it would be better for you to use other events, such as OnExit or BeforePost? Excuse me! Is there a good solution to this problem? 🙂 Quote
Sherzod Posted January 7 Posted January 7 On 1/6/2025 at 2:42 PM, charles13115255 said: Is there a good solution to this problem? 🙂 Hello, I have opened a support portal request for further investigation of the issue. Quote
charles13115255 Posted January 8 Posted January 8 19 hours ago, Sherzod said: Hello, I have opened a support portal request for further investigation of the issue. Looking forward to good news. thank you very much~ 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.