View Issue Details

IDProjectCategoryView StatusLast Update
0002585JEDI VCL00 JVCL Componentspublic2006-07-29 07:35
ReporterppmAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version3.00 BETA 
Target VersionFixed in Version3.30 
Summary0002585: jvdblookupcombo don't refresh value on detail in master/detail dataset relationship
Descriptioni think it's old error from rx library - if we have master/detail relationship on some dataset, and JvDBLookupCombo is on detail dataset it's don't refresh keyvalue, i comment one line in TJvLookupControl.CheckDataLinkActiveChanged, works good, but... - i think that generaly test if fields was recreated is bad idea to determine that keyvalue should be refresh

it's my version (ugly but minimalistic change in orginal :) )

procedure TJvLookupControl.CheckDataLinkActiveChanged;
var
  TestField: TField;
begin
  if FDataLink.Active and (FDataFieldName <> '') then
  begin
    TestField := FDataLink.DataSet.FieldByName(FDataFieldName);
    //if Pointer(FDataField) <> Pointer(TestField) then
    begin
      FDataField := nil;
      FMasterField := nil;
      CheckNotCircular;
      FDataField := TestField;
      FMasterField := FDataField;
      DataLinkRecordChanged(nil);
    end;
  end;
end;
TagsNo tags attached.

Activities

ppm

2005-02-01 02:13

reporter   ~0006327

i forgot add that fields on detail are created at design time, and as object all time exists with same pointer

obones

2006-03-30 02:52

administrator   ~0008736

Could you provide a sample application, complete with sources AND demo database?

ppm

2006-03-30 03:05

reporter   ~0008740

yep - i will try to prepare

ppm

2006-05-09 04:15

reporter   ~0009262

please close this issu - i cannot reproduce error in sample application on JVCL 3.20

ppm

2006-05-09 05:42

reporter   ~0009264

urgh....
i cannot upload file

urgh2...
i do additional test with bde components - here problem exist - my previous test was made on ado(dbGo) components - there all is fine...

link to zip with sources, database and binary
ftp://bomark.serwery.pl/JvDBLookupCase.zip

in "db" subdirectory is database - pls make odbc alias with point to it
problem exists on second form where i placed jvdblookupcombo - if i navigate on master dataset lookupcombo don't refresh it's value

obones

2006-06-09 02:38

administrator   ~0009516

If you cannot reproduce it with ADO but can with BDE, then it is most likely an error in BDE. Considering that BDE is no longer supported, I'm not in favor of doing any research on this. However, if you find a bug fix that you believe has no side effects, please provide a diff file and we will integrate it.
Also, please try with the latest daily version:

http://jvcl.sf.net/daily/

Issue History

Date Modified Username Field Change
2005-02-01 02:07 ppm New Issue
2005-02-01 02:13 ppm Note Added: 0006327
2006-03-30 02:52 obones Note Added: 0008736
2006-03-30 02:52 obones Status new => feedback
2006-03-30 03:05 ppm Note Added: 0008740
2006-05-09 04:15 ppm Note Added: 0009262
2006-05-09 05:42 ppm Note Added: 0009264
2006-06-09 02:38 obones Note Added: 0009516
2006-07-29 07:35 obones Status feedback => resolved
2006-07-29 07:35 obones Fixed in Version => Daily / SVN
2006-07-29 07:35 obones Resolution open => won't fix
2006-07-29 07:35 obones Assigned To => obones