Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: TNCDBTreeView shows 50 empty records instead of empty node
TNCDBTreeView shows 50 empty records instead of empty node
Posted: 2000/08/01 10:25
 
To work around this problem I had to modify NCDBTree.pas
In function TNCDBTreeView.Create after creation of FQuery
FQuery := TOciQuery.Create(nil);
I added
//Mur
FQuery.FetchParams.FetchAll := True;
Maybe It's not best way, but it solved the problem

RE: TNCDBTreeView shows 50 empty records instead of empty node
Posted: 2000/08/01 13:18
 
Another problem in NCDBTree.pas
Function TNCDBTreeView.QueryData()
Statement
if not AIsOwnerValue then
joinFields := KeyFields;
should be
if not AIsOwnerValue then
joinFields := Self.KeyFields;
because this TOCIQuery has it's own KeyFileds defined in TOCIDataSet
and this "if" is nested in
with FQuery, FQuery.SQL do
try
// here
finally
...
end;

RE: TNCDBTreeView shows 50 empty records instead of empty node
Posted: 2000/08/01 18:59
 
This bug will be fixed in 0.8.2 version.
It will be available at 02-aug.