View Issue Details

IDProjectCategoryView StatusLast Update
0001905JEDI VCL00 JVCL Componentspublic2007-01-03 12:17
ReporterxerkanAssigned Toogiesen 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0001905: Update field with TJvDBDatePickerEdit
DescriptionWhen one changes the date in the TJvDBDatePickerEdit the date of the field associated in datafield until the center to contro does not take off to him, with which is not updated if I want to know the content of the field with speedbutton gives like result the previous date me.
Additional InformationCuando se cambia la fecha en el TJvDBDatePickerEdit no se actualiza la fecha del campo asociado en el datafield hasta que no se le quita el foco al contro, con lo cual si quiero saber el contenido del campo con un speedbutton me da como resultado la fecha anterior.
TagsNo tags attached.

Activities

ogiesen

2004-07-21 05:32

developer   ~0004787

Could you maybe attach another screenshot/video? I'm really having trouble understanding your description and the translation a friend of mine tried to do wasn't exactly helpful either... might be because she has no idea about Delphi or programming... :(

2004-07-22 01:42

 

video.avi (414,208 bytes)

xerkan

2004-07-22 01:49

reporter   ~0004789

I also send a video of demonstration this codified with the DivX(video.avi), the program with which there am creado (demo.zip)
Problem is that if you try to see or to show the content of the date with speedbutton the east not to assign itself the center does not show correctamente.
Program this created with Delphi 7, since a ClientDataSet uses as data base.

[Original text]

Te envío un video de demostración esta codificado con el DivX (video.avi), tambien el programa con el que lo he creado (demo.zip)
El problema es que si intentas ver o mostrar el contenido de la fecha con un speedbutton al este no asignarse el foco no la muestra correctamente.
El programa esta creado con Delphi 7, ya que usa un ClientDataSet como base de datos

2004-07-22 01:52

 

Demo.zip (4,225 bytes)

anonymous

2004-07-22 02:23

viewer   ~0004790

Ah OK. Thanks. I can reproduce that here now. Looking into it...

ogiesen

2004-07-22 06:51

developer   ~0004791

Ok, I investigated a bit and the behaviour is actually consistent with other db-aware controls like TDBEdit, TDBComboBox, etc.

You could only read the new value from the field itself if you either post the record or if you shift the focus to some other control intermediately. All db-aware controls in the VCL only update the datalink in the CM_EXIT message handler. I would actually have expected TJvDBDatePickerEdit to behave better in this respect though as it doesn't use CM_EXIT but WM_KILLFOCUS instead which in contrast to CM_EXIT should also fire when the focus shifts to a TSpeedButton (your example would not exhibit the problem if you would use a TButton instead)... at least that's what it's supposed to do... maybe someone messed up the ExControls... will investigate...

obones

2006-03-30 07:09

administrator   ~0008761

Any news on this?

dtmiller

2006-05-02 13:43

reporter   ~0009240

Quick solution:
Overide protected procedure from JvCustomDatepickerEdit:

Procedure HidePopup; Override;

procedure TJvCustomDBDatePickerEdit.HidePopup;
begin
  inherited;
   FDataLink.UpdateRecord;
end;

obones

2006-06-27 06:27

administrator   ~0009679

Yes, but what if no change occured in the popup?

obones

2007-01-03 12:15

administrator   ~0010494

Well, considering it's a corner case, this will be left as is.

Issue History

Date Modified Username Field Change
2004-06-30 03:05 xerkan New Issue
2004-07-05 00:25 ogiesen Status new => assigned
2004-07-05 00:25 ogiesen Assigned To => ogiesen
2004-07-21 05:32 ogiesen Note Added: 0004787
2004-07-22 01:42 xerkan File Added: video.avi
2004-07-22 01:49 xerkan Note Added: 0004789
2004-07-22 01:52 xerkan File Added: Demo.zip
2004-07-22 02:23 anonymous Note Added: 0004790
2004-07-22 06:51 ogiesen Note Added: 0004791
2006-03-30 07:09 obones Note Added: 0008761
2006-03-30 07:09 obones Status assigned => feedback
2006-05-02 13:43 dtmiller Note Added: 0009240
2006-06-27 06:27 obones Note Added: 0009679
2007-01-03 12:15 obones Status feedback => resolved
2007-01-03 12:15 obones Resolution open => no change required
2007-01-03 12:15 obones Note Added: 0010494