Jaume Posted September 2, 2013 Posted September 2, 2013 Hi, I have a problem with the onSetText Event of my datasets. When you have a UniDBEdit and you change its text, the onSetText Event of the linked dataset field is not triggered. I've tested it in VCL Delphi and it worked, but in UNIGUI the event is never triggered with the visual UniDB components. As it seems, the event is triggered when TField.text is changed, so maybe the UniDBEdit doesn't modify the TField.text of the linked field as the DBEdit does. Can you verify if it's a bug or you have planned to work as it is? Thank you very much. Jaume 1 Quote
Jaume Posted September 14, 2013 Author Posted September 14, 2013 Anybody know something about it? Do I move this post to the Bug Reports / Feature Request? Thank you Quote
ganzqgy Posted October 17, 2014 Posted October 17, 2014 procedure Ttyhgl.CDS1userGetText(Sender: TField; var Text: string;DisplayText: Boolean);begin text:=DecodeString(sender.AsString );end; procedure Ttyhgl.CDS1userSetText(Sender: TField; const Text: string);begin sender.AsString :=EncodeString(Text); //not workend; Quote
ganzqgy Posted October 17, 2014 Posted October 17, 2014 procedure Ttyhgl.UniDBEdit1Change(Sender: TObject);begin CDS1.FieldByName('user').AsString :=EncodeString(UniDBEdit1.Text);end; ok!!! 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.