Subject Re: [IBO] Report Builder / IBO
Author Jason Wharton
I hope someone is on-line that has this problem in their environment.
I would like to know if this routine will resolve the problem:

function TIBODataset.BookmarkValid( ABookmark: TBookmark ): Boolean;
var
BS: string;
ANodeRef: TIB_NodeRef;
begin
Result := false;
if Assigned( ABookmark ) then
begin
Result := true;
SetLength( BS, BookmarkSize );
Move( ABookmark^, BS[1], BookmarkSize );
with InternalDataset do
begin
KeyFields.RowData := BS;
if NodeList.LookupNode( KeyFields.RowBuffer, true, ANodeRef ) then
Result := not (( rfDeleted in ANodeRef.Node.RowFlags ) or
not InternalDataset.NodeList.FilterDel ) and
not (( rfFiltered in ANodeRef.Node.RowFlags ) or
not InternalDataset.NodeList.Filtered );
end;
end;
end;

This is in the IBODataset.pas unit.

Thanks,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Mike Combellack" <mikec@...>
Newsgroups: egroups.ibobjects
To: <IBObjects@yahoogroups.com>
Sent: Tuesday, August 14, 2001 4:17 PM
Subject: Re: [IBO] Report Builder / IBO


> Well done! Changing the BookmarkValid function to always return TRUE did
> indeed solve the problem - although this can only be a temporary fix. I
hope
> this raises the problem to one of "great concern"!
>
> Thanks Artur - I wish I'd posted earlier rather than wasting three days on
> it!!
>
> Mike
>
>
> ""Artur Anjos"" <arsoft@...> wrote in message
> news:000401c12513$c69bf340$0200a8c0@......
> >
> > Mike:
> >
> > This is related with ValidateBookmark problem that I have already
informed
> > Jason. You can see the problem on my post subject: '[IBO] BookmarkValid.
I
> > think it's a bug'. If you want, I can send it to you, so you can see the
> > problem. Is very easy to recreate it.
> >
> > IBO 3.xx works fine in this function.
> >
> > I put a "quick fix", changing this function to always return True. I
don't
> > have time to think about any other inconveniences (this function should
> > check if the bookmark is valid, but lot's of people use them just to
check
> > if the dataset supports bookmarks: let's pray that RBuilder use this
> > function just for the second reasons, until Jason fix it.)
> >
> > Report Builder must call this to make shure the DataSet suports
Bookmarks.
> > Most of VCL's that work with different DataSets do.
> >
> > I have this problem with Report Builder and Developer's Express Quantum
> > Grid.
> >
> > It works with the last row because it just returns true when CurrentPos
is
> > EOF. In this case, and just in this case, it returns True. I spend all
> > Saturday and half of Sunday trying to figure what's wrong. My "natural"
> > language is C...
> >
> > Anyway, Jason knows about this, and he said:
> >
> > "I have it logged as an item of concern."
> >
> > Regards,
> >
> > Artur
> >
> > ----- Original Message -----
> > From: Mike Combellack
> > Newsgroups: egroups.ibobjects
> > To: IBObjects@yahoogroups.com
> > Sent: Tuesday, August 14, 2001 11:22 PM
> > Subject: [IBO] Report Builder / IBO
> >
> >
> > I originally thought this was a problem with Report Builder, but I now
> > believe that upgrading to IBO4 has caused the following problem:
> >
> > A report linked to a dataset is asked to print for the current record
> only.
> > If the dataset is a BDE one, it works fine - if I replace it with an IBO
> > Dataset the report jumps to the beginning of the table before printing.
> With
> > IBO 3.x this worked as expected. Any ideas/suggestions?
> >
> > Mike Combellack
> >
> >
> >
> >
> > Yahoo! Groups Sponsor
> >
> >
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>